5. rm - "Remove"
Deletes files or directories. To remove a file:
To remove a directory, use the -r option (recursive deletion):
6. cp - "Copy"
Copies files from one directory to another. To copy a file:
To copy a directory, add the -r option (recursive copy):
7. mv - "Move"
Moves or renames files and directories. To move a file "file.txt" to the directory "folder":
To rename a file:
mv oldname.txt newname.txt
8. touch
Creates a new empty file or updates the timestamp of an existing file:
9. cat - "Concatenate"
Displays file content in the terminal:
10. nano
Terminal-based text editor for viewing and editing files:
To save the file: Press CTRL + X, then Y, and then Enter.
11. grep
Searches for text in a specified file:
To recursively search for specific text in all files and subdirectories, add -r option (recursive search):
12. find
Searches for files and directories based on various criteria. To find a specific file:
find . -type f -name "file.txt"
To find a directory:
find . -type d -name "folder"
13. sudo - "Super user do"
Executes commands with administrator privileges. Regular users needing elevated permissions prepend "sudo" to any command:
14. apt - "Advanced package tool"
Package management tool for Debian and Ubuntu systems used for installing and updating software packages.
To install a program:
Or to upgrade packages:
15. tar - "Tape archiver"
Creates and extracts archives. To archive a directory:
tar -cvf archive.tar folder/
To extract an archive:
16. chmod - "Change mode"
Changes file and directory permissions:
17. ps - "Process status"
Shows running processes:
18. kill
Terminates a process based on its ID:
19. df - "Disk free"
Displays disk usage statistics:
20. history
Displays previously executed commands:
We hope these commands will help you efficiently handle various tasks on Linux operating systems. If you encounter issues or have questions, please contact our live support or email us at
[email protected].