Until now, I was trying to keep my Linux (and other related) notes on a static web page, and using other local software on my PC. Finally, I decided to create this blog to make easier for me the task of updating my notes from any place and to have quick access to them.
viernes, 8 de mayo de 2015
Turn off or modify Cheese snapshot sound....
One solution is to modify the file /usr/share/sounds/freedesktop/stereo/camera-shutter.oga
Solution from: http://unix.stackexchange.com/questions/93368/how-can-i-disable-the-shutter-sound-of-gnome-screenshot
miércoles, 6 de mayo de 2015
martes, 3 de marzo de 2015
Setting bash as the default shell
Instructions in : http://www.cyberciti.biz/faq/howto-set-bash-as-your-default-shell/
1. Look for the path to bash with
which bash
2. Type:
sudo chsh -s output-path-from-previous-step username
Otherway to do that is to modify the /etc/passwd file.
1. Look for the path to bash with
which bash
2. Type:
sudo chsh -s output-path-from-previous-step username
Otherway to do that is to modify the /etc/passwd file.
viernes, 10 de octubre de 2014
Print odd and even lines from a file
sed -n 2~2p filename
will print even-numbered lines from filenamesed -n 1~2p filename
will print odd-numbered lines.Source: http://unix.stackexchange.com/questions/26723/print-odd-numbered-lines-print-even-numbered-lines
jueves, 9 de octubre de 2014
Create a new user
Type:
Set a password:
useradd usernameSet a password:
passwd usernameTo create a new user with directory add -m option
Set up bash as default shell
chsh -s /path/to/shell {user-name}
Source: http://www.cyberciti.biz/faq/howto-set-bash-as-your-default-shell/
$ which bash (to kwnow the path to bash) Source: http://www.cyberciti.biz/faq/howto-set-bash-as-your-default-shell/
lunes, 8 de septiembre de 2014
Delete files from subdirectories
Delete files of a given type:
(example with *.files):
find . -name \*.swp -type f -delete
Delete files by name:
find . -name "file_name.ext" -delete
Suscribirse a:
Entradas (Atom)