1. The top of the console displays the current time: add environment variables Prompt_Command in / etc / bashrc or ~ / .bashrc.
Export Prompt_Command = echo -ne
"/ 0337/033 [2; 999R / 033 [1; 1H / 033 [00; 44M / 033 [K" `DATE`" / 033 [00m / 0338 "
2. Use up to 23 virtual terminals (VT), assuming that you have 6, simulating the files of / etc / inittab, join
8:234: Respawn: / sbin / getty 38400 TTY8
24: 234: Respawn: / sbin / getty 38400 TTY24
To skip VT7 because X uses this terminal. The Telinit Q then reload the configuration file. Use the left Alt Fn to switch between 1-6 and 8-12, and switch between 13-24 using the right alt fn key.
3. Console Switch: Left Alt - arrow keys, cyclic switching console. The effect is the same as Alt Fn.
4. Simple DOS to Unix: If you have annoying Ctrl-m in each line in your text file, use this sentence to quickly solve the problem SED S / ^ m // filename> NewFileName
5. Quickly establish MP3 playlist: Find / mnt / cdrom -name * .mp3 -print >> cd1.play.list. This will create a file called CD1.Play.list with all MP3 files in the CDROM. Then use XMMS or X11AMP to play.
6. Important information in PROC
CAT / Proc / CPUInfo - CPU (I.E. Vendor, MHz, Flags Like MMX)
CAT / Proc / Interrupts - Interrupt
CAT / Proc / Ioports - Device IO Port
CAT / Proc / Meminfo - Memory Information (I.E. MEM Used, Free, Swap Size)
CAT / Proc / Partitions - All partitions of all devices
CAT / PROC / PCI - Information of PCI Equipment
CAT / Proc / Swaps - Information on all SWAP partitions
CAT / Proc / Version - Linux version number
7. Real console interface: To tell the truth, both KDE and GNOME I haven't liked, after all, I have been smoked for so long. But under console is actually a true COOL interface. Using SVGatextMode allows your command line interface to reach 132x60 (standard is 80x25). I use 132x43 on my 486 (Trident9440), the secretly Ma Ma's character is really like Hollywood's movie (now Windows now), it is to feel the 刭赓 摹 E-render? Etc 刭赓 ETC / Textconfig In, it is estimated that this is not used by your xwindow normally. (After all, it is a few years ago).
8. Let your hard drive fly: 32bit I / O and DMA can also be used under Linux. Use / sbin / hdparm -c1 / dev / hda (HDB, HDC ..) to open the 32Bit transfer mode, open the DMA using command / sbin / hdparm -d1 / dev / hda (HDB, HDC ...). Finally, use / sbin / hdparm -k1 / dev / hda to keep the hard disk over the RESET, so that the hard disk read / write speed should be more than double.
9. Microwell your ext2: Linux command tune2fs can set the maximum number of MOUNT (because Linux is instant in the MOUNTED CLEAN, it will force E2FSCK to force E2FSCK for me to open the machine every day. Convenient), please refer to Man. 10. Disable BLINK Tag: ~ / .xdefaults in Netscape, Modify Netscape * BlinkInableNabled: False runs xrdb -load ~ / .xdefaults
11. Change the font size of XTERM at any time: Shift plus /-
12. Ext2 File Properties: Lsattr Lists Properties, Chattr can change the properties. If Chattr A filename, the system does not modify its Last Access Time property; Chattr i can avoid being removed by RM.
13. Configuration of SIS6326 graphics card: Add: DACSPEED 110 OPTION "No_bitblt" option "sw_cursor"
14. Use Strings to separate the strings from the binary file.
15. You probably be used to using TOP to observe the system usage, then try using VSTAT1 to see the idleness of the CPU (the last item of the results).
16. Use the watch command, repeatedly perform a specific command, such as "Watch Ls -l / TMP / Blah", will always observe the big "mutant"?
17. Use PPPSTATS to get the PPP connection data.
18. Display the NFS: showmount -e hostname of the remote machine
19. Use Autofs to remove your mount and umount, and then RPM with AutoFs in redHat6.0, as long as you install it, you can enjoy the convenience of the file system. In / misc directory, create a CD directory, if you own the auto.misc and auto.master, you can implement the automatic load function immediately.
20. In the Bash Shell, you can use it! Repeat the commands you entered several times, so you can save the trouble of scrolling. Use CTL R to retrieve the previously used command line.
21. Use CD-to switch in both CD / Directory / operations. Such as CD / Home / Foo is then CD / Home / Maison, then play CD - will enter / home / foo to play CD - will enter / Home / Maison.
22. Shortcuts in Bash: Escape-b will jump forward forward, Ctrl-K will delete all characters from the cursor to the row.
23. Using GREP in the PS command: PS AUXW | GREP GPM lists all processes containing GPM characters.
24. Perform multiple commands simultaneously on the same command line: separated by a semicolon. Such as compiled a source file: type ./configure; make; make install. You can walk after you (don't spend too much time before the computer, there are still a lot of things in life.)
25. Output the run results into a file, such as ls -l> foo.file.
26. Use the TOP command to monitor system conditions, memory usage, boot time, process status, usage of each user, and so on. Use the S command to change its refresh:, if .5 will be updated every half a second.
27. At the same time, unzip multiple files, unzip * is incorrect, but unzip "*".
28. Establish a symbolic link, which is probably the most useful feature, ln -s real-file symbolic-file, whether it is a device, document or a scriptor. 29. Change the unit of display, such as Du -hm will output the result in m in m, and the same du -hk is output in K.
30. Automatic logoff, adding this sentence in ~ / .bashrc: tmout = 300 will be logoff after 5 minutes, but if the LESS is running, it will not start.
31. When using LESS or MORE, start the editor directly: In the LESS, you will start the VI or other editor you indicated in the environment variable immediately, but more can only use VI.