- ls = Display the files and folders in the current directory.
- ls -l = Shows detailed information files and directories.
- ls -a / ls -la = Shows all files, including hidden files.
- cat > filename.txt = Create a file using cat. Then type your text and Press CTRL + D to save.
- cat >> filename.txt = Add more data on create a file.
- cat filename.txt = See file data.
- cat > .filename.txt = It is used for create a hidden file.
- cat .filename.txt = See hidden file data.
- stat filename = It shows metadata.
- nano filename = It is used for modify/edit file data.
- touch file1 file2 file3 = Create multiple files at once.
- touch filename = It is used for create a empty file.
- mkdir directoryname = It is used for create a directory.
- mv filename Directoryname = Move file in directory.
- cp file1 file2 = Copy file1 in file2 .
- mkdir -p dirx/diry/dirz = Create a directory dirx under dirx in diry than under diry in dirz
- rm filename = It is used for remove a file.
- rmdir dirctoryname = It is used for remove a blank directory.
- rm -rf directoryname = It is used for remove a directory an under data.
- head filename = Its show starting to end data .
- tail filename = Its show end to top data .
- sort filename = Its show line wise data.
- ls -ltr = Display list files and directories with detailed information, sorted by time (oldest first).
- useradd name = Used for add new user.
- cat /etc/passwd = See new user you add.
- groupadd name = Used for create a group.
- cat /etc/passwd = See group you create.
- gpasswd -a user group = Used for user add in group.
- gpasswd -M user,user, group = Used for multiple users add in group.
- ln -s filename soft-link = This command used for create a dublicate file but original file will delete so data remove dublicate file.
- ln Database-file01 hard-link = This command used for create a dublicate file supose original file will delete but dublicate file data is saved.