Thursday, December 21, 2006

Linux - A summary of useful Linux commands

Linux commands , by TH+

Starting & Stoping
shutdown -h now
- Shutdown the system now and do not reboot
halt
- Stop all processes
shutdown -r 5
- Shutdown the system in 5 minutes and reboot
shutdown -r now
- shutdown the system now and reboot
reboot
- Stop all processes and then reboot , same as above

Moving , Copying , Deleting & viewing files
ls -l
- List files in current directory using long format
ls -F
- List files in current directory and indicate the file type
ls -laC
- List all files in current directory in long format and display in columns
rm name
- Remove a file or directory called name
rm -rf name
- Kill off an entire directory and all its includes files and subdirectories
cd filename /home/dirname
- Copy the file called filename to the /home/dirname directory
mv filename /home/dirname
- Move the file called filename to the /home/dirname directory

1 comment:

Unknown said...

Oh! This blog is beautiful. an this sestion is useful for anyone which are interesting with Linux. I recommend this sesction.