- Present working directory(pwd):
$ pwd
- change directory(cd):
$ cd "dirName or path"
- back one step directory(cd):
$ cd ..
- back root directory(cd):
$ cd /
- from user to direct jump to the file (cd~):
$ cd~
- List file (ls):
$ ls
- List file with hidden (ls):
$ ls -a
- List file with file permission details (ls):
$ ls -l
- List file with permission and hidden files (ls):
$ ls -al
- Make directory(mkdir):
$ mkdir "dirName"
- create subdirectory at a time(mkdir):
$ mkdir -p dirM/2ndDir/lastDir
- make any file(touch):
$ touch fileName.txt
- to check description of a file(file):
$ file fileName.jpg
- show the content of a file(cat,less):
$ cat fileName
$ less fileName
- show any long file with head part or tail part(head,tail):
$ head fileName
$ tail fileName
- clear terminal (clear):
$ clear
- to see last command you write(history):
$ history
- copying file (cp):
$ cp fileNmae pathwithFilename
$ cp *.jpg /user/desktop/picture
- rename file and directory (mv):
$ mv oldFile newFile
$ mv oldDir newDir
- move file(mv):
$ mv fileName /home/desktop/files
$ mv file1 file2 /files
- remove file and directory(rm):
$ rm fileName
$ rmdir dirName
$ rm -r dirName
$ rm *.text
- know any commands manual(man):
$ man mkdir
- find some file(find):
$ find /home -name fileName
- see date and time:
$ date
$ time
- want to see my ssh key:
$ cat ~/.ssh/id_rsa.pub
- to show a short description about your desire command(whatis):
$ whatis cat
- for exit from terminal(exit):
$ exit
$ logout
- locate a program file from Users file using which command:
$ which bash
- who is in the system to check by using whoami command:
$ whoami
Top comments (0)