Commands by namakukingkong (2)

  • You need to have figlet(for font) and cowsay installed. Just copy n paste this command and you can see..... Show Sample Output


    0
    watch -tn1 'figlet -f slant `date +%T` | cowsay -n -f telebears'
    namakukingkong · 2011-11-25 14:35:01 0
  • You need to have figlet(for font) and cowsay installed then add it to your .bashrc file.You can see it every time after start a new session. Show Sample Output


    0
    figlet -f $(ls /usr/share/figlet/fonts/*.flf | shuf -n1) namakukingkong | cowsay -n -f $(ls /usr/share/cows/ | shuf -n1)
    namakukingkong · 2011-11-25 13:54:06 0

What's this?

commandlinefu.com 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

Show used disk space:

Add "prefix" on a buch of files

Function to output an ASCII character given its decimal equivalent
I've corrected the function. My octal conversion formula was completely wrong. Thanks to pgas at http://mywiki.wooledge.org/BashFAQ/071 for setting me straight. The new function is from pgas and is very fast.

Click on a GUI window and show its process ID and command used to run the process
This command is useful when you want to know what process is responsible for a certain GUI application and what command you need to issue to launch it in terminal.

Make anything more awesome
Pipe any command through figlet to make the output more awesome. Example: $ ls | figlet

route add default gateway

Create a temporary file
To create directory, use: $ tempdir=$(/bin/mktemp -d)

Create several copies of a file
Copy a file to a range of other files.

Write comments to your history.
A null operation with the name 'comment', allowing comments to be written to HISTFILE. Prepending '#' to a command will *not* write the command to the history file, although it will be available for the current session, thus '#' is not useful for keeping track of comments past the current session.

mount an iso
mounts an ISO file to a directory on the target file system


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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: