Linux Basic Commands

Linux Basic Commands
Advertisement
Linux is a command-line based operating system, which means that users interact with the system through the use of commands. There are many basic commands in Linux that are commonly used for tasks such as navigating the file system, managing files and directories, and managing processes. Some common basic Linux commands include:

  1. ls - Lists the files and directories in a directory.
  2. cd - Changes the current working directory.
  3. pwd - Prints the current working directory.
  4. mkdir - Creates a new directory.
  5. touch - Creates a new file.
  6. rm - Removes a file or directory.
  7. cp - Copies a file or directory.
  8. mv - Moves or renames a file or directory.
  9. cat - Displays the contents of a file.
  10. grep - Searches for a specified pattern in a file or a stream of text.
  11. find - Finds files and directories based on specified criteria.
  12. top - Shows the processes running on the system and their resource usage.
  13. free - Shows the amount of free and used memory on the system.
  14. df - Shows the amount of free and used disk space on the system.
  15. man - Shows the manual page for a command, which provides more detailed information about how to use the command and its options.
These commands are just the starting point, there are many more commands that you can use in Linux to perform various tasks. And these commands can be combined with options and arguments to achieve specific tasks.

Also, sudo command is used to run a command with superuser privileges, while su command is used to switch to the superuser.

cat command is used to display the contents of a file, grep command is used to search for a string in a file and find command is used to search for files in a directory.

Please note that these commands may work differently on different Linux distributions.

That’s it.

INFO

If you would have any questions or concerns, please leave your comments. I would be glad to explain in more details. Thank you so much for all your feedback and support!

Share this article:
Advertisement

Comments (0)

No comments yet. Be the first to share your thoughts!