Commands tagged kill (44)

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

List docker volumes by container

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"

coloured shell prompt
This coloured prompt will show: username in green, grey "@" sign, hostname in red, current directory in yellow, typed commands in green.

Bash scripts encryption and passphrase-protection
This function will encrypt a bash script and will only execute it after providing the passphrase. Requires mcrypt to be installed on the system.

Use ImageMagick to get an image's properties

Download song from youtube for import into itunes (m4a format)
Last argument is the youtube link. Requires ffmpeg

Tail a log-file over the network
This one is tried and tested for Ubuntu 12.04. Works great for tailing any file over http.

Show apps that use internet connection at the moment. (Multi-Language)
for one line per process: $ ss -p | cat for established sockets only: $ ss -p | grep STA for just process names: $ ss -p | cut -f2 -sd\" or $ ss -p | grep STA | cut -f2 -d\"

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 top 100 djs from https://djmag.com/top100djs


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: