create
learn
share

Linux Unix

edit

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
start learning
start learning

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)
start learning
start learning

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
start learning
start learning
blog comments powered by Disqus