linuxutils
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linuxutils [2007/04/02 10:26] – andi | linuxutils [2008/05/24 20:20] (current) – old revision restored 88.66.8.195 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Useful Linux Utilities ====== | ||
+ | |||
+ | * [[gpg]] options | ||
+ | |||
+ | ===== Useful tools with hard to remember names ===== | ||
+ | |||
+ | * '' | ||
+ | * generates passwords: | ||
+ | - '' | ||
+ | - '' | ||
+ | * '' | ||
+ | |||
+ | |||
+ | |||
+ | ===== Mrxvt ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Place this into your '' | ||
+ | |||
+ | < | ||
+ | mrxvt.font: 9x15 | ||
+ | mrxvt.geometry: | ||
+ | mrxvt.reverseVideo: | ||
+ | mrxvt.loginShell: | ||
+ | mrxvt.scrollbarRight: | ||
+ | mrxvt.scrollbarStyle: | ||
+ | mrxvt.bottomTabbar: | ||
+ | mrxvt.saveLines: | ||
+ | mrxvt.visualBell: | ||
+ | Mrxvt.macro.Shift+Left: | ||
+ | Mrxvt.macro.Shift+Right: | ||
+ | </ | ||
+ | |||
+ | Some tips: | ||
+ | |||
+ | * Change tab with '' | ||
+ | * Open a new tab with '' | ||
+ | * Change the title of a tab by marking some text and middle click the tab's name | ||
+ | * Open multiple tabs at startup with '' | ||
+ | |||
+ | ===== SSH Port forwarding ===== | ||
+ | |||
+ | Forward the webserver (port 127.0.0.1: | ||
+ | |||
+ | $> ssh user@remote.host -L 8080: | ||
+ | |||
+ | ===== File Transfer through existing SSH connection ===== | ||
+ | |||
+ | Have you ever been logged into a machine (maybe even over multiple hosts) and then needed a file from you local host on that machine? Using a second connection with scp is a pain in the a** especially with multiple hops. The solution is [[http:// | ||
+ | |||
+ | On you local machine just install it ('' | ||
+ | |||
+ | alias ssh=zssh | ||
+ | |||
+ | When you are on the remote machine just press '' | ||
+ | |||
+ | sz -e < | ||
+ | |||
+ | The '' | ||
+ | |||
+ | ===== vmstat ===== | ||
+ | |||
+ | Gives you some info about memory stats, IO and CPU states. Give sample rate in seconds as parameter. | ||
+ | |||
+ | #> vmstat 3 | ||
+ | |||
+ | ===== dig ===== | ||
+ | |||
+ | This is a powerful replacement for '' | ||
+ | |||
+ | Doing a zone transfer if allowed: | ||
+ | |||
+ | $> dig @nameserver domain.tld axfr | ||
+ | |||
+ | ===== Unlocking a CD Writer with cdrdao ===== | ||
+ | |||
+ | If a write failes the writer stays inaccessable sometimes - giving an error like this: | ||
+ | |||
+ | logical unit not ready, long write in progress | ||
+ | |||
+ | Resetting the SCSI or ATAPI bus doesn' | ||
+ | |||
+ | #> cdrdao unlock | ||
+ | |||
+ | |||
+ | < | ||
+ | Will use the recorder for reading and writing: | ||
+ | |||
+ | #> cdrdao copy --device 0,0,0 --driver generic-mmc --datafile / | ||
+ | |||
+ | ===== Burn an ISO Image with cdrecord ===== | ||
+ | |||
+ | #> cdrecord -v dev=0,0,0 speed=16 driveropts=burnfree image.iso | ||
+ | |||
+ | ===== VIM Setup in source file ===== | ||
+ | |||
+ | You can embed Setup Commands for VIM in the source file. Here is an example for a Shell Script: | ||
+ | |||
+ | #Setup VIM: ex: et ts=2 nowrap syntax=sh : | ||
+ | |||
+ | ===== pgrep and pkill ===== | ||
+ | |||
+ | From the [[man> | ||
+ | |||
+ | > pgrep looks through the currently running processes and lists the process IDs which matches the selection criteria to stdout. | ||
+ | > | ||
+ | > pkill will send the specified signal (by default SIGTERM) to each process instead of listing them on stdout. | ||
+ | |||
+ | This is a nice replacement for constructions like '' | ||
+ | |||
+ | ===== nast ===== | ||
+ | |||
+ | Sweet Network Analyzer (http:// | ||
+ | |||
+ | I like the '' | ||
+ | |||
+ | |||
+ | ===== iostat I/O Device Usage Informations ===== | ||
+ | |||
+ | This command-line tool is within the '' | ||
+ | usage: iostat [device [device2..]] [refrehrate in sec] [repeats] | ||
+ | refrehsrate defaults to 0, means no repeats at all. | ||
+ | repeat defaults to infinite. | ||
+ | |||
+ | |||
+ | ===== iptraf Network Load Informations ===== | ||
+ | |||
+ | This command-line tool displays package information and Usage of several network interfaces. | ||
+ | It has a console-graphical interface and serveral configuration options. See man-page. | ||
+ | |||
+ | ===== httrack Website Copier ===== | ||
+ | |||
+ | To fetch a whole site use this command: | ||
+ | |||
+ | $> httrack -K0 -%q0 --keep-alive --urlhack -D http:// | ||
+ | |||
+ | ===== mplayer / mencoder ===== | ||
+ | |||
+ | This gives you the suggested crop parameters: | ||
+ | |||
+ | $> mplayer -vf cropdetect somemovie.avi | ||
+ | |||
+ | |||
+ | This concats two avi files | ||
+ | |||
+ | $> cat part1.avi part2.avi| mencoder -noidx -ovc copy -oac copy -o output.avi - | ||
+ | |||
+ | For rotating MJPEG movies as produced by the [[PowerShot S2 IS]]. This is not completely lossless but the best way I could find: | ||
+ | |||
+ | $> mencoder -vf rotate=2 -ovc lavc -lavcopts vcodec=mjpeg -oac copy -o output.avi input.avi |
linuxutils.txt · Last modified: 2008/05/24 20:20 by 88.66.8.195