Today's users can choose whether or not to use the command line as a symbol of Linux as they wish, which proves that Linux has grown quite a lot. Many Linux distributions now have a very powerful graphical user interface that no longer requires a command line.
But the command line can be more efficient in Linux, and in fact it's usually easier, easier, and more straightforward than clicking in the menu.
I believe the fear of the command line is the biggest mistake a new Linux user has made. For this reason, let's take a look at some basic command lines that Linux users should know about.
1. Man
I started with the "Man" command because in many ways it's a basic command. This command is the command you need to use when you need to know about other commands.
Essentially, the "man" command gives a simple introduction to the other commands in the online book. It allows you to understand the basic functions of these command lines and how to use them. You can even enter "man man" to get the Manual of "man" directly.
Any time you feel unsure about a command line, you can find out exactly what the command does by typing "man + command".
2. ls
Another basic command is "LS", which is used to display the contents of the directory. For example, "ls~" to display the contents of your home directory.
3. pwd
To know your current working directory, enter "pwd", meaning "output working directory". For example, entering this command in the Desktop directory will return "~/desktop".
4. cd
To change your current directory, use this command. To switch to the desktop directory, enter "Cddesktop" as an example.
5. mkdir
This command is used to create a new directory. For example, "mkdir pictures" will create a directory called "Pictures" in the directory.
6. F IND and locate
To search for a file, you can use "find" or "locate" to approximate the usage and functionality of both.
7. CP
If you want to create a copy of a file and rename it, you can use this command. Enter "CP Cats Dogs" and you will get a copy of the "Cats" file named "Dogs"; the file "Cats" still exists.
8. MV
With the "MV" command, you can change the name of a file or move it to another folder, or both. Enter "MV Cats dogs" To rename the file "Cats" to "dogs", and enter "MV Cats ~/desktop" to move the file "Cats" to the desktop directory without renaming it.
9. More
The "more" command lets you see more content in one screen at a time.
Ten. Kill
You want to close a program, which is probably the most efficient way to come. Use the "PS" command to locate the process ID you want to close, and enter "kill" to close the process.
One. sudo
Part of the reason the Linux system is so secure is that only the root user has privileges to install, uninstall software, and other significant changes. Ordinary users to install a program, you can use the sudo command to temporarily gain the privileges of the root user. But you must enter the root user's password.
passwd.
Want to change your password? Enter this command in the terminal, which will prompt you to enter your current password and enter a new one.
Remember: the documentation that you use for the distribution is usually helpful to you. For example, in Ubuntu, the Help section in the command line is a good place to learn these commands.
Linux.org's "Getting Start with Linux" Guide is also a great place to explore.
On the other hand, learning some basic command line is your first step to better use Linux. Soon you will find that these command lines have become your friends.
- This article is from: Linux Learning Network
12 Commands a Linux novice must learn