As a beginner of Linux terminal, there is a lot of knowledge to learn. In addition to the basic commands, you need to master some tips. The following small series will introduce you to the necessary tips for beginners of Linux terminals. It is helpful to you.
Using a Linux terminal is more than just entering commands. After learning these basic techniques, you will gradually master the Bash shell, the terminal tool that is used by default on most Linux distributions.
This article is written for inexperienced novices, and I believe that most advanced users already know all of these techniques. However, you can still look at it and maybe learn something you have always overlooked.
Tab key auto-completion
Auto-completion using the Tab key is a basic technique. It saves you a lot of time, and it's useful when you're not sure how a file name or command is spelled.
For example, if you have a file in the current directory, the file name is "really long file nam", you want to delete this file. You can enter the entire file name, but you have to be careful to enter the wrong space character (requires \\escape). If you type ”rm r” and press the Tab key, Bash will automatically complete the file name for you.
Of course, if you have a lot of files starting with the letter r in the current directory, Bash won't know which one you are referring to. For example, in the current directory, you have another text called “Really very long file name”. When you press the Tab key, Bash will be added to the “really\\” section because both files start with this. . Then, press the Tab key and you will see a list of all files that match the beginning, as shown below.
Then enter the file name you want and press the Tab key. In this way, when we lose “l” then press the Tab key, Bash will automatically complete the file name we want.
This method is also suitable for entering commands. When you are not sure what the command you want is, just remember to start with ”gnome”, enter “gnome” then press the Tab key and you will see all possible results.
The Pipeline command allows you to transfer the output of one command to another. In the Unix design philosophy, each program has only a few features. For example, the “ls” command will display a list of all files in the current directory, and the ”grep” command will search for the input string in the place where it was created.
Pass the two through the pipeline command (with “
We all know that the brightness of the screen can be adjusted using the buttons on the display, but
On Linux systems, if you want to expand disk capacity, you can create new virtual disk space. After
Under Linux, if you want to see if a group contains a specific username, you can us
PlayOnLinux is a very good software for friends who like Windows software but use L
Detailed explanation of the functions and parameters of the Linux system ar command
Steps for creating RPM packages for Linux systems
How does the Linux system distinguish between gmtime and localtime
What are the common commands for Linux rookie?
How to use the touch command under Linux?
What should I do if the ASUS F81se computer installs Ubuntu 12.04?
How to use traceroute command under Linux
Linux uses commands to clean large files. Steps
Three ways to configure Java environment variables in Linux
Ubuntu configuration and use of MPI method
Linux does not extract compressed files, how to directly view a file size
After the router is properly set up in Win7 system, it still cannot access the Internet
Solve XP and WIN7 sharing settings to make LAN sharing unimpeded
Win10 system as an administrator to open a command prompt CMD window 3 ways
Loading the operating system into the removable hard disk
How to open the system restore function of Win7 system
How can the Win8.1 system use the command to quickly view the version?
Windows wireless service how to open windows wireless service method
Win7 gadget can not open, win7 gadget can not display
How to input the HTML language code quickly by QQ input method?