rm – Remove
The rm command is used to remove files or directories.
Syntax:
rm [options] [file/directory]
Example:
rm new_file
This command removes the file named new_file. Here we have used ls command to display the files in the current directory.
25 basic Ubuntu Commands
Ubuntu is one of the most popular distributions of Linux, known for its user-friendly interface and robust features. Whether you’re a beginner or an experienced user, understanding basic Ubuntu commands is essential for navigating and managing your system efficiently. In this article, we’ll explore 25 fundamental Ubuntu commands along with detailed descriptions, syntax, examples, and explanations.
25 basic Ubuntu Commands
- 1. ls – List Directory Contents
- 2. cd – Change Directory
- 3. pwd – Print Working Directory
- 4. mkdir – Make Directory
- 5. rm – Remove
- 6. cp – Copy
- 7. mv – Move
- 8. touch – Create Empty File
- 9. cat – Concatenate and Display
- 10. nano – Text Editor
- 11. grep – Search
- 12. sudo – Superuser Do
- 13. apt-get – Package Manager
- 14. dpkg – Package Manager
- 16. chmod – Change Mode
- 17. chown – Change Owner
- 18. tar – Tape Archive
- 19. uname – Print System Information
- 20. date – Display Date and Time
- 21. shutdown – Shutdown or Restart System
- 22. ps – Process Status
- 23. top – Display System Activity
- 24. du – Disk Usage
- 25. df – Disk Free