1: Host's fun: Host can be used to query domain names, but it can get more information. Host -t mx linux.com can query the MX record of Linux.com, and the name of HOST to process Mail. Host -l Linux COM will return all registered domains under Linux.com. Host -a Linux.com will display all domain name information of this host. 2: Find the file you need, maybe you want to figure out what other related files and commands do you use? Try the LDD. If LDD Traceroute, the return result will be libc.so.6, limited! timing! Do you want to handle timing? You must hope to make you relax! Crontab can listen to your instructions. Enter: crontab -e into the text editor in the command line, then enter 0 5 * * * WG et -t3 -i / home / Tom / URLS -N. This will run this WGET command every morning. The top five is time parameters: Time and months. You can 0 5 * * 6,0 Command Line Here, which is running every Saturday and Sunday 5AM. You need Man 5 crontab to get a more detailed explanation. Just say, Wget is a small program that takes a web page. Console Top Displays the current time: add environment variables Prompt_Command in / etc / bashrc or ~ / .bas HRC. Export Prompt_Command = Echo -ne "33733 [2; 999 R33 [1; 1H33 [00; 44M33 [K" `Date`" 33 [00m338 "4: Used up to 23 virtual terminal (VT), suppose you now 6, simply followed / etc / inittab, add 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. 5: Console Switch: Left Alt-arrow keys, loop switching console. The effect is the same as Alt Fn. 6: Simple DOS to Unix: If you have annoying Ctrl-M at the end of each line in your text file, use this sentence to quickly solve the problem SED S / ^ m // filename> NewFileName 7: Rapid build MP3 playlist: Find / mnt / cdrom -name * .mp3 -print >> cd1.play.list. This will establish a file named cd1.play.list with all MP3 files in the CDROM. Then use XMMS or X11AMP to play.
8: / proc / cpuinfo - CPU (IE Vendor, MHz, Flags Like MMX) CAT / Proc / Interrupts - Interrupt CAT / PROC / IOPORTS - Device IO Port CAT / PROC / MEMINFO - Memory Information ( IE Mem Used, Free, Swap Size Cat / Proc / Partitions - All partitions CAT / Proc / PCI - PCI device information CAT / proc / swaps - All SWAP partitions information CAT / Proc / Version - Linux version 9: Real console interface: To tell the truth, no matter what KDE and GNOME I have no love, after all, I have been smoked by Windows so long. But under console is actually a true COOL interface. Using SVGatextMode allows your command line interface to reach 132x60 (standard is 80x25). My 486 (Trident9440) is 132 x43, the dense Ma Ma's character is really like a movie in Hollywood (now there is windows in the movie), which gives people feel mysterious. The configuration file is in / etc / textconfig, but if your xwindow can't be displayed, it is estimated that this is not used (after all, it is a few years ago). 10: 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 to hold the settings after the RESET, so that the hard disk read / write speed should be more than double. 11: Try your extra2: 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 shutdown every day. Very Not convenient), other purposes of the Tune2FS command, please refer to Man. 12: Prohibition of BLINK Tag: ~ / .xdefaults Modify Netscape * Blinki NGENABLED: False Run Xrdb -Load ~ / .xdefaults 13: Change the font size of XTERM at any time: Shift plus /- 14: EXT2 file properties: Lsattr lists properties, Chattr can change the properties. If Chattr A FileNam E changes its Last Access Time property; Chattr i can avoid being removed by RM. 15: SIS6326 graphics configuration: DACSPEED 110 option "no_bitblt" Optio N "SW_CURSOR" 16: Use strings to separate strings from binary files 17: You are probably used to use TOP to observe the system Situation, then make a look at the idleness degree of C PU (the last item of the results). 18: Use the watch command, repeatedly perform a specific command, such as "Watch LS -L / TMP / Blah", will always observe the size change of the file.
19: Use PPPStats to get the data of the PPP connection. 20: Display remote machine NFS: showmount -e hostname 21: Use autofs to eliminate you every mount and umount, then REDHAT6.0 with autof rpm, you can enjoy the automatic loading file system after installation Convenience. In / misc directory, create a CD directory, if you use its own auto.misc and auto.master, you can implement the automatic loading of automatic loading. 22: 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. 23: Use the CD-to switch in the last two CD / Directory / operations. Such as cd / home / foo then CD / h ome / maison, then play CD - will enter / home / foo to play CD - will enter / home / maison. 24: Shortcuts in Bash: Escape-b will give a word from the previous article, Ctrl-K will delete all the characters from the cursor to the row. 25: Using GREP in the PS command, an example: PS AUXW | GREP GPM lists all processes containing GPM characters. 26: Perform multiple commands simultaneously on the same command line: separated by a semicolon. Such as compiled a source file: type ./c onfigure; make; make install. You can walk after you (don't spend too much time in front of your computer, there are still a lot of things in life.) 27: Output the results to a file, such as ls -l> fila. 28: 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. 29: At the same time, unzip multiple files, unzip * is incorrect, but unzip "*". 30: Establish a symbolic link, which is probably the most useful function, ln -s real-file symbolic-file, whether it is a device, document or a scriptor. 31: Changing the unit of display, such as du -hm outputs the result in m in m, and the same du -hk is output in K. 32: Automatic logoff, adding this sentence in ~ / .bashrc: tmout = 300 will be logoff after 5 minutes, and may not be started if the LESS is running. 33: When using LESS or MORE, start the editor directly: In the LESS, you will immediately start the VI or other editor you indicated in the environment variable, but more can only use VI.