Starting and Stopping
- poweroff will shutdown the system
- reboot will restart the system
Mounting and unmounting
- fdisk -l gives a list of all drives
- mount /dev/hdd /mnt would mount the hard drive in /mnt
- umount /dev/hdd would unmount the hard drive
Moving, copying, deleting & viewing files
- ls will output all the files in the current directory
- rm filename will remove the file
- rm -r dir will remove the dir
- cp filename /home/dirname this will copy the file to /home/dirname
- mv filname /home/dirname this will move the file to /home/dirname
- cat filetoview this will display the file called filetoview
- man -k keyboard this will display man pages containing
- tail filetoview this will display the last 10lines of the file called filetoview
User Administration
- adduser accountname this will create a new users called accountname
- password accountname this will give accountname a new password
- su this will allow you to login as root from your current login
Misc
- ifconfig this will list ip addresses for all devices on the machine
- tail -f /var/log/messages this displays the last 10 lines of the system log
- /etc/init.d/daemon-name-here start this will start the specified daemon
basic, learner, learning, Linux, newbie, noob
This post was written by:
Duffy - who has written 47 posts on Tuts4Tech.
I am the owner of this website, please feel free to ask me any questions you have
Contact the author
Wed, May 6, 2009
Linux