commandlinefu.com is the place to record those command-line gems that you return to again and again.
Delete that bloated snippets file you've been using and share your personal repository with the world. 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.
If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/
You can sign-in using OpenID credentials, or register a traditional username and password.
First-time OpenID users will be automatically assigned a username which can be changed after signing in.
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
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:
Install a deb package you have downloaded (synaptic has to be closed).
(dpkg-dev needs to be installed)
After that you may have to run following:
sudo apt-get install -f
(that should fix any dependency problems)
I am using ubuntu linux
Work only with bash and apt-file installed.
When it found an unknow command, it will search for a file named "scribus" (in my example), in a folder named bin and then install the corresponding package.
After installation, it will run the command.
Usefull juste after reinstalling linux and missing lot of package.
Thanks for the comments
evento.sh needed for awk syntax
the aplay command makes a camera sound. It takes a picture of who looked at the display
#!/bin/bash
# evento.sh: deteta evento e fala
awk '{print}' | espeak -v pt -stdin
awk '/e/{print "emergencia"}' | espeak -v pt -stdin
aplay -q /home/mm/bash/camera.wav # -q inibe verbose do comand aplay
exit 0
You can redirect the pipe to > file.txt
See more here: http://ss64.com/nt/dir.html
Type out the command and simply press to see the list of options for that command without having to type --help.
This is useful for working out whether the file that you are unzipping is an evil zip file which will create 200 new files in your current direction
For users looking to simplify management of large entries in files and directories, this command is the key to fun and simplicity. Using the power sort, only a couple of seconds are necessary to accomplish what would take minutes or hours in ?standard? client applications.
tail -n X | head -n 1
prints a specific line, where X is the line number
This is a simple command, but useful when you don't remember what episode need to see :D
Get the complete distro information from shell prompt like distributor ID,code name etc.
Compile *.c files with "gcc -Wall" in actual directory, using as output file the file name without extension.
Opens a new shell as root. Useful if you want to run a lot of commands as superuser without needing to sudo each of them.
this application monitors the apps you use most often and load them into memory with their libraries and other dependencies.
So now, when you launch Firefox or Thunderbird or OpenOffice, the display is immediate as on Mac.