Check the current runlevel :
1)who -r or runlevel
Change the runlevel :
init n where n=1to 6 0:halt 1:single user 2-5:multiuser 6:reboot
* man init ,update-rc.d
* link http://www.cyberciti.biz/tips/linux-changing-run-levels.html
Remove the job from running automatically in a run-level
* sudo update-rc.d -f cups remove
* sudo update cups defaults
But if the next time package is upgraded , the links(to /etc/init.d/) will again be made.
So better rename the start script to stop script S to K
Also rc.local is the script which is run after all run-level scripts have been run.Can be pretty useful to put startup commands here.
2) Command line short-cut
Take arguments from previous command : (!*)
like touch temp;rm !*; removes it
3)finger -l username : to check the details about a user like logged in,idle time,terminal etc .
.plan in home dir can be used for additional info
.nofinger can be used to restrict fingering.
4)sudo apt-get install dict-gcide
To install the webster dictionary on ubuntu
5) To find a directory/file
find / -name 'dirname' -type d
1)who -r or runlevel
Change the runlevel :
init n where n=1to 6 0:halt 1:single user 2-5:multiuser 6:reboot
* man init ,update-rc.d
* link http://www.cyberciti.biz/tips/linux-changing-run-levels.html
Remove the job from running automatically in a run-level
* sudo update-rc.d -f cups remove
* sudo update cups defaults
But if the next time package is upgraded , the links(to /etc/init.d/) will again be made.
So better rename the start script to stop script S to K
Also rc.local is the script which is run after all run-level scripts have been run.Can be pretty useful to put startup commands here.
2) Command line short-cut
Take arguments from previous command : (!*)
like touch temp;rm !*; removes it
3)finger -l username : to check the details about a user like logged in,idle time,terminal etc .
.plan in home dir can be used for additional info
.nofinger can be used to restrict fingering.
4)sudo apt-get install dict-gcide
To install the webster dictionary on ubuntu
5) To find a directory/file
find / -name 'dirname' -type d
No comments:
Post a Comment