Notice

: Function WP_Styles::add was called incorrectly. The style with the handle "hello-elementor-child-style" was enqueued with dependencies that are not registered: hello-elementor-theme-style. Please see Debugging in WordPress for more information. (This message was added in version 6.9.1.) in /home/csrkub/domains/cube-vps.com/public_html/wp-includes/functions.php on line 6131

Notice: Function WP_Scripts::add was called incorrectly. The script with the handle "gpress-custom-js" was enqueued with dependencies that are not registered: gpress-siema. Please see Debugging in WordPress for more information. (This message was added in version 6.9.1.) in /home/csrkub/domains/cube-vps.com/public_html/wp-includes/functions.php on line 6131

*Cube-Host– full cloud services!!

TOP 10 useful commands for Linux

Top 10 useful commands for Linux

If you have started learning useful Linux commands, you have probably already installed one of the distributions of this operating system and are ready to work productively. In this article, we will list the most common useful commands for Linux users.

Overview of useful Linux commands

  • pwd (Print Working Directory)

This command displays the current directory you are in. It is especially useful if you forget where you are in the file system.


					
				

Result


					
				
  • ls (List)

When used without parameters, this command displays a list of all files and folders in the current directory. To display the contents of another directory without changing to it, simply specify the path to the desired directory:


					
				

Result


					
				
Command options

Display hidden files


					
				

Result


					
				

Conclusion of such information


					
				

Result


					
				

File size output


					
				

Result


					
				

Extracting files of a specific type


					
				

Sort by size


					
				

Counting the number of files


					
				
  • cd (Change Directory)

This command allows you to navigate to another directory. For example:


					
				
Command options

Go to home folder


					
				

Moving up a level


					
				

Go to the root directory


					
				

Go to the previous catalog


					
				

Moving to a folder with spaces in its name


					
				

Switch to user directory


					
				
  • touch

Allows you to create an empty file with the specified name. To make sure that the file has been created in the right place, use the ls command. Example:


					
				
  • rm (Remove)

This command deletes unnecessary files. Be careful, as deletion is irreversible. For example:


					
				
  • mkdir (Make Directory)

Used to create new folders. Example:


					
				
  • rmdir (Remove Directory)

Allows you to delete an empty folder. For example:


					
				
  • mv (Move)

Command for moving files and folders, as well as renaming them.

Moving a file:


					
				

Renaming a file


					
				
  • cp (Copy)

Used to copy files and folders. You can specify a new name for the copy. Example:


					
				
  • man (Manual)

The command opens reference information about any other command. For example:


					
				

Conclusion

These commands form the basis of working in Linux, helping you to manage files and directories efficiently. It should be noted that each command is responsible for more than just the actions listed. In fact, they can do much more. We have only described some of the most commonly used features. In addition, if you want to work in Linux, you should also learn about file access permissions.

Оглавление

 

Prev