Daily Operating Skills in Linux

Source: Internet
Author: User
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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.