Linux Usage Tips Highlights (1) Blue Forest http://www.lslnet.com, September 7, 1992 22:18
Servers: ignorant
Linux Usage Skills Highlights (1) When using Linux, there may be a feeling everywhere, but when you use some tricks, you will feel more and more smoothly. Here is some experience and skills that I have accumulated since Linux. I believe it will help beginners.
1. Use virtual console
After logging in, press the Alt F2 key to see "Login:" prompt, this is the second virtual console. Generally newly installed Linux has four virtual console, you can use ALT F1 ~ Alt F4 To access. The virtual console is most useful to switch to other virtual console when a program is misfinalized to log in and kill this error.
2. Copy and paste
Character interface: No matter how Slackware or Redhat installation, you will automatically run a program that is called GPM. After running, you can use the mouse to copy and paste. The specific practice is to press and hold the left mouse button to drag to copy The place of the place, when the white area has been copied, then the content of the right mouse button will be pasted in the position of the cursor. X-WINDOW: Copy operation is the same as the character interface, three-button mouse Press the middle key to paste, two-button mouse, simultaneously press the point button (must select Emulate 3 Button in the mouse when configuring XF86).
3. Quickly enter some directory
Type CD ~ You can enter the user's Home Directory. Type CD - to enter the previous entry directory.
4. Use of floppy drive
If it is Linux's EXT2 file system with the following command: #mount -t2 / dev / fd0 / mnt DOS format floppy disk with command: #mount -t msdos / dev / fd0 / mnt then access the floppy disk in / mnt The content, pay attention to remove the file system on the floppy disk before removing the floppy disk, and the #umount / mnt may result in loss. The file system is established on the floppy disk can be used as the following command: # mke2fs / dev / fd0 1440
5. Redhat Displays the color directory list to open / etc / bashrc, add the following line: Alias ls = "ls --color" next time you start Bash, you can display a list of colored directories like it in Slackware, where the meaning of color As follows: Blue -> Directory Green -> Executable File Red -> Compressed File Light Blue -> Link File Gray -> Other Files
6. Display the type of file with command file to make you know that a file is an executable file in an ELF format, or the shell script file or other format, for example: #file startX
7. Command file path When you type some commands such as Find, ShutDown, Mount, if you want to know which directory does these files put? Use the command whereis to be implemented, such as #whereis StartX
8. Finding the file find command to add some parameters to find the file, such as: #find / usr -name xf86setup -print Find file XF86setup in / usr.
9. Deleting useless Core files After running, sometimes a file called Core, this file is generally large and not used, can be deleted to release space.
10. Declined the.tar.gz file in a time .tar.gz files generally need to decompress with Gunzip and then use the TAR unpack, which can be completed at once in Linux, such as: #tar zxpvf sample.tar.gz
11. Display the long text name in the Win95 partition If you find the long file life in the Win95 partition can't be displayed, you can reusing the vfat method to mount. For startup, you can modify file / etc / fstab, will be inside MSDOS The words are changed to vfat. If you are unable to use vfat mount, you must recompile the core and join the support for VFAT.
12. Norton Commander in Linux When you type in the prompt, you will see an interface that is very similar to Norton Commander. It is actually very similar to even more powerful, such as you can directly .tar.gz compression package. The file is operated (there is a bit like zipmagic) .13. After startup, enter the x editing / etc / inittab file, turn ID: 3: initDefautl to ID: 4: initdefautl. However, search path may have some problems, you have to get off Go directly into / sbin to perform Shutdown.
14. Don't forget to add a & number when you run the X program in the background, if you add a & number, if you are #Netscape & Otherwise, you cannot enter the command in that terminal window before you launch the execution.
15. Forcibly exit X Sometimes it doesn't work in X because the program error mouse keyboard does not work, because it is almost like a malignant crane in Win95 in WinUX, you only need to type Ctrl Alt Backspace key You can go back to the character interface.