Commands by eastwind (71)

  • syntax : mencoder mf://filemask -mf option availble for mf : * w=value : the width of the output, by d?fault : autodetected * h=value : height of the output, by default : autodetected * fps=value : framerate of the output, by default : 25 * type=value : file format type input , avaible: jpeg, png, tga, sgi Show Sample Output

    mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpeg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi
    eastwind · 2009-10-21 09:14:04 2
  • create iso image from directory . Usefull for virtualised machine To create CD ISO image of directories that contain long file name or non-8.3 format (particularly if you want to burn the CD image for use in Windows system), use the -J option switch that generates Joliet directory records in addition to regular iso9660 file names. For example, to create CD image of Vista SP1 directory: mkisofs -o VitaSP1.iso -J VistaSP1 Show Sample Output

    mkisofs -o XYZ.iso XYZ/
    eastwind · 2009-10-17 16:28:47 12
  • Refresh the cache of font directory , usefull after you download font (.ttf or other) from various website and you don't want to reboot or relogin . Close your word processor before using the command , after the refresh reopen your word processor , new fonts is avaible ! Show Sample Output

    sudo fc-cache -f -v
    eastwind · 2009-10-07 11:01:29 7
  • convert to debian package file (deb) a redhat package file (rpm) , then you can install it by using dpkg , require alien package ( sudo apt-get install alien first ) Show Sample Output

    sudo alien --to-deb Your_PackAge.rpm
    eastwind · 2009-09-27 13:49:07 4
  • for the change stay in your history file , export command by writing it into your .bashrc Show Sample Output

    export HISTTIMEFORMAT="%h/%d-%H:%M:%S "
    eastwind · 2009-09-25 22:42:28 3
  • this command limit the speed to 8 until next eject of your cdrom disc , can be usefulll when you don't want to listen the sound of your cdrom driver .

    eject -x 8 /dev/cdrom
    eastwind · 2009-09-25 08:02:30 2
  • bchunk [-v] [-p] [-r] [-w] [-s] Show Sample Output

    bchunk IMAGE.bin IMAGE.cue IMAGE.iso
    eastwind · 2009-09-25 07:42:05 3
  • save the input into a ogg file Show Sample Output

    rec -c 2 -r 44100 -s -t wav - | oggenc -q 5 --raw --raw-chan=2 --raw-rate=44100 --raw-bits=16 - > MyLiveRecording.ogg
    eastwind · 2009-09-24 14:46:12 2

  • 2
    $ cdrdao read-cd --read-raw --datafile FILE_NAME.bin --device /dev/cdrom --driver generic-mmc-raw FILE_NAME.toc
    eastwind · 2009-09-24 14:19:22 29
  • The ^$ within the quotes is a regular expression: ^=beginning of line, $=end of line, with no characters between.

    grep -v "^$" filename > newfilename
    eastwind · 2009-09-24 12:21:43 3
  • cat -n file : number all line cat -b file : number only non empty line see man cat

    cat -n file or cat -b file
    eastwind · 2009-09-24 12:18:40 3

  • 2
    lsb_release -a
    eastwind · 2009-09-16 10:50:33 2

  • 1
    cdrecord -v -blank=all -force
    eastwind · 2009-09-14 19:21:15 5

  • -1
    cdrecord -v path_to_iso_image.iso
    eastwind · 2009-09-14 19:20:12 3
  • 1. find file greater than 10 MB 2. direct it to xargs 3. xargs pass them as argument to ls Show Sample Output

    find ./ -size +10M -type f -print0 | xargs -0 ls -Ssh1 --color
    eastwind · 2009-08-25 18:40:47 5

  • -11
    sudo cat /dev/mem > /dev/dsp
    eastwind · 2009-04-22 07:26:10 2
  • tell you how many Non free software is on your machine, which package it is and which restriction on freedom it has . require vrms package , vrms mean virtual Richard M. Stallman :) Show Sample Output

    eastwind · 2009-04-22 06:54:20 3
  • Require boxes and / or cowsay packages. After input boxes -d dog , type your text and then press ctrl + d . Same goes for cowsay . Show Sample Output

    boxes -d dog or cowsay -f tux $M
    eastwind · 2009-04-22 06:01:20 3
  • need toilet package , same goes for figlet showfigfonts | less : give the list of font available for options Show Sample Output

    toilet -f big ReadMe
    eastwind · 2009-04-22 05:48:13 3
  • sudo apt-get install moon-buggy An ascii 2D game where you control a mooncar and try to avoid moonhole by jumping (press space ) Show Sample Output

    eastwind · 2009-04-22 05:41:40 4
  • sudo apt-get install bb A demoscene intro in ascii art with tracker song

    eastwind · 2009-04-22 05:33:25 6
  •  < 1 2 3

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Check These Out

find all file larger than 500M
Greater than 500M and sorted by size.

Find the package that installed a command

Checks the syntax of all PHP files in and below the current working directory
Uses the PHP binary to check the syntax of all .php files in or below the current working directory. Really handy for doing that last minute check before you commit code to the repository.

Search and display with VIMs syntax highlighting!
Multi-argument version, but with VIM loveliness :D

Rename files in batch

pulsed terminal clock
hypnotizing pendulum

Which processes are listening on a specific port (e.g. port 80)
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"

List files with quotes around each filename

Prefix every line with a timestamp
Useful to add a timestamp to every line printed to stdout. You can use `-Ins` instead of `-Iseconds` if you want more precision.

Displaying system temperature
Displaying system temperature your system . shellcode version @

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: