Linux Terminal Most Used Commands and Usages

Ismat Babirli
3 min readJan 24, 2023
Photo by Joan Gamell on Unsplash

The Linux terminal is a powerful tool that lets users talk to the system and do many different things. In this blog post, we will discuss some of the most commonly used commands and their usage.

  1. ls - The ls command is used to list the files and directories in a given directory. This command can be used with various options, such as -l to display the files in a long format, and -a to display hidden files.
  2. cd - The cd command is used to change the current working directory. For example, to change the current directory to the home directory, you would use the command cd ~.
  3. mkdir - The mkdir command is used to create a new directory. For example, to create a new directory called "example," you would use the command mkdir example.
  4. touch - The touch command is used to create a new file. For example, to create a new file called "example.txt," you would use the command touch example.txt.
  5. rm - The rm command is used to remove files and directories. This command can be used with the option -r to remove directories and their contents. For example, to remove a file called "example.txt," you would use the command rm example.txt.
  6. cp - The cp command is used to copy files and directories. For example, to copy a file called "example.txt" to a new location called "example_copy.txt," you would use the command cp example.txt example_copy.txt.
  7. mv - The mv command is used to move or rename files and directories. For example, to rename a file called "example.txt" to "example_renamed.txt," you would use the command mv example.txt example_renamed.txt.
  8. pwd - The pwd command is used to display the current working directory.
  9. man - The man command is used to display the manual page for a given command. For example, to view the manual page for the ls command, you would use the command man ls.
  10. clear - The clear command is used to clear the terminal screen.
  11. grep - The grep command is used to search for specific text within a file or a group of files. This command can be used with various options, such as -r to search recursively through a directory and its subdirectories, and -i to perform a case-insensitive search. For…

--

--