Netizen collection: Linux operating system experience sharing

  

Linux is getting more and more popular. Microsoft's "black screen" incident made us see the danger of relying too much on Microsoft. The OOo World Open Source Conference just past let us see the future of open source. As an open source operating system ——Linux, I believe more and more people will use it. Here are 10 tips for using Linux to prepare you for your future needs. 1. Use the virtual console

After logging in, press the <Alt+F2” key to see the “login:” prompt, this is the second virtual console. Generally, the newly installed Linux has four virtual consoles, which can be accessed by <Alt+F1” to “Alt+F4”. The most useful time for a virtual console is to switch to another virtual console when a program fails to lock input. After logging in, use the kill command to kill the faulty process.

2. Copy and Paste

After the character interface (whether it is Slackware or RedHat), it will automatically run a program called gpm every time it starts, it can be used after running. Mouse to copy and paste. The specific method is to hold down the left mouse button and drag to make the text to be copied reversed. At this time, the highlighted area has been copied, and then the content copied by the right mouse button will be pasted at the cursor position.

Under X-Window, the copy operation is the same as the character interface. If you are using a three-button mouse, press the middle button to paste. If it is a two-button mouse, you can press the left and right buttons at the same time (condition) It is necessary to select Emulate 3 Button in the mouse settings when configuring XF86.

3. Quickly enter certain directories

Type cd~ to enter the user's home directory. Type cd- to go to the previous directory.

4. Display the color directory list under RedHat

Open /etc/bashrc and add the following line:


alias ls=″ls - -color″


The next time you start bash, you can display a list of colored directories as you would in Slackware. The meanings of the different colors are as follows:


Blue →Table of Contents Green →Executable file Red →Compressed file Light blue → Link file Gray → Other files


5. Path to the command file < Br>

When you type some commands (such as find, shutdown, mount, startx), do you want to know which directory these files are placed in? Use the command “whereis”, such as:


#whereis startx


6. Find Files

The find command adds some parameters to find files, such as:


#find /usr -name XF86Setup -print


Finding file XF in /usr 86Setup.

7.Delete useless core files

After the program finishes running, sometimes a file named core will be generated. This file is usually very large and useless. It can be deleted to free up space. .

8. Norton Commander in Linux

After typing the command mc at the prompt, you will see an interface similar to Norton Commander. In fact, the functions are similar or even more powerful. For example, you can directly manipulate the files in the .tar.gz archive (a bit like ZipMagic).

9. Run the X-Window program in the background

Don't forget to add an ampersand (such as #netscape &) when executing an X-Window program. Otherwise, you exit the execution. The program can no longer enter commands in that terminal window.

10.Forcibly exit X-Window

Sometimes in the X-Window, due to a program error, the mouse and keyboard are not working, so don't worry, because it will hardly be under Linux. Like the vicious crash in Win 9x, you just have to type Ctrl+Alt+BackSpace to go back to the character interface.

Copyright © Windows knowledge All Rights Reserved