Article Title: daily operating skills in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
For Linux cainiao, the newbie asked, "Do we still need command lines and shortcuts if we have a graphical interface ?", The answer is: "Yes !"
Come with me. Let's discuss and solve several common problems for new users:
1. Eliminate crashes in XWindows
We can use two common methods to eliminate this phenomenon:
First, press Ctrl + Alt + Backspace on the keyboard to close the currently running task;
Second, press and hold the "Ctrl + Alt + F1" compound key on the keyboard to switch the system to another console and then log on to the system, run the "# ps-ax/grep startx" command, which will list the process IDs of your Xserver, then, enter the following command in the command line to eliminate the crash in Xwindows:
Kill-9 PID_Number
Finally, return to the original platform through the Alt + F1 compound key.
2. Copy all files in the folder and Its subdirectories.
Cp-a/work/lib/target // #-a is equivalent to-dpR
3. Delete non-empty directories and Their subdirectories
Rm-dRf/work/lib
4. File (folder) movement and rename
Mv predir/prefile newdir/newfile
5. Switch the KDE and GNOME desktop environments
Directly switch desk kde/gnome in the terminal, log out, and log on again.
6. view the file/folder capacity
Du-h file/dir # The file/folder size is displayed in KB and MB;
Du-sh dir # Shows the size of folders and Their subdirectories;
7. View File System Information
Df-lh # used to report the total capacity, usage, and remaining capacity of the file system.
8. View System Information
Uname-a # list the current kernel version of the system. You can use uname -- help to view options, including kernel name and version, machine hardware name, and processor model.
Ps # command to view the details of each process, including CPU and memory usage. For example, ps-aux.
9. Switch between Console and XWindow
Ctrl + Alt + F1 ~ F6: six virtual consoles are provided;
Ctrl + Alt + F7: XWindow is returned.
Summary: The above columns are some of the most common system and file operation commands. Some commands can find and solve the problem in the shortest time. Is it very convenient? Of course, more good things are waiting for you to explore. Please try it now!