Crontab related

xiaoxiao2021-03-06  66

[Original] [32M

Tyxin@smth.edu.cn

[37M] [M M] Angshan (meteor shower), letter area: SS_SAST Title: Linux Tips 33 (reproduced) Send Station: BBS Shuimu Tsinghua Station (Fri May 17 12:28:14 2002) 1: Host Fun: Host can use 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 domain names 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 the LDD Traceroute, the return result will be libc.so.6, limited to LID-Linux.s O.2 3: Timing! 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.

转载请注明原文地址:https://www.9cbs.com/read-87466.html

New Post(0)