29th November 2008
in
cli
While in Terminal, going back to the previous directory can be done with the classic cd ..But there’s another way. make an alias of you choice for cd $OLDPWD, like this:
alias cdo=’cd $OLDPWD’
Now every[...]
Tags: cd
5 Comments
27th November 2008
in
Security, cli
If you are an administrator and have users on your server, keeping files with limited permissions should be a priority. To seek out all world-writable files on your machine, do a simple
find / -perm -2 ! -type l -ls
[...]
Tags: files
1 Comment
26th November 2008
in
System
It’s easy to find out when were the last 30+ times you rebooted your Linux PC. Do a
last reboot
to get a list of exact dates:
reboot system boot 2.6.27-7-generic Tue Nov 25 09:12 - 11:17 (02:04)
reboot [...]
Tags: reboot
1 Comment
26th November 2008
in
System
Do you by any chance wish to modify the behavior of Ctrl+Alt+Delete? Change the following line in /etc/inittab:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
Comment it out with # to disable Ctrl+Alt+Del altogether or[...]
Tags: reboot
1 Comment