Create
Learn
Share

Linux Unix

rename
Updated 2008-05-24 10:49

Directories

ActionCommand
return into home dir cd
move to the superior directorycd ..
return to root dir from any point cd /
show the content of a dir ls
show dir's content with more details ls -l
create dir mkdir [dir name]
delete directory rmdir [dir name]
delete dir and all subdirs rm -r [dir name]
delete dir and all subdirs without asking confirmation rm -r -f
show where you are pwd
show subdir's tree tree [dir name]
terminate command's execution reset
memorize

Files

ActionCommand
copy a filecp
delete a filerm
move/rename a file mv
transform yes.txt in no.txt mv yes.txt no.txt
move yes.txt in home dir mv yest.txt /home
show file's content cat fillename
create an empty file touch filename
if you wanna know more about a command man command
set time and date hwclock (see man hwclock for more info)
memorize

Basic System management

Question Answer
Reboot the systemshutdown -r now OR reboot
close the system shutdown -h now OR halt
shut and turnoff the systemhalt -p
differences between shutdown, halt, reboot, poweroff and the runlevel conceptsee man
close bash or terminal exit
start execution of graphic server startx
memorize