Linux command line literacy most basic command application

  
 

The most indispensable part of the Linux world is the Linux command line application. The Linux command line can help us quickly find what we want, what we want to do, and how to do all sorts of cumbersome things in batches. It is a tool for uncompromising system management and application. This article mainly introduces you to the most common Linux commands and performs a large Linux command literacy. The susu command is one of the most basic commands and is often used to switch between different users. For example, if you log in as user1 and want to switch to user2, just use the following command: $su user2 and then the system prompts you to enter the user2 password. After entering the correct password, you can switch to user2. Once completed, you can use the exit command to return to user1. A common use of the su command is to become the root user or superuser. If you issue the su command without a user name, the system prompts you to enter the root password, and you can switch to the root user after the input. If you log in as the root user, you can use the su command to become any user on the system without a password. The pwdpwd command is also one of the most commonly used and most basic commands for displaying the directory in which the user is currently located. The cdcd command not only displays the current state, but also changes the current state. Its usage is basically the same as the cd command under dos. Cd .. can enter the previous directory cd - can enter the previous directory cd ~ can enter the user's home directory lsls command is the same as the dir command under dos, used to display the contents of the current directory. If you want to get detailed information, you can use the ls -l command, so you can display the details of the contents of the directory. If there are too many files in the directory, you can't display them with one screen. You can use ls -l

Copyright © Windows knowledge All Rights Reserved