Sei sulla pagina 1di 1

pwd : print current directory, /home/perry cd: change directory : cd /home/roman cd ..

up one level directory ls: lists all the files and directories that you are in. whoami: tells which user is logged in su: substitute user : su yvarapra : change from one user to other. exit: to back to old user touch : to create a file , touch myfiles rm : removes the file, rm (specify options) -i( make sure you waant to remove th e file,,it wil ask) rm -i linux3.txt (hit enter) prompts for remove the file : yes mv: move(rename) the file mv linux_syaabus linux.txt clear: clear the terminal cp : copy , eg: cp linux_syllabus.txt linux3.txt. (type lin and hit tab) mkdir: creating directory mkdri temp ls linux_syllabus.pdf linux.txt temp cant remove the directory without deleting all the files inside the directory

tips : command completion: no need to type entire directory name eg: cd h(than hit tab) it comes up with cd hold/ history commands: up arrow and down arrow. -------------editors: Emacs: vi

Potrebbero piacerti anche