Commands by Zeben (2)

  • This useful command will help to detect bitrate of each audio file in folder where it will run for. Show Sample Output


    0
    find . -print0 | xargs -0 -I{} ffmpeg -i "{}" 2>&1 | grep "kb\/s\|Input"
    Zeben · 2018-01-19 03:45:04 22
  • This command is useful for sending mp3-sound by the quick way using SSH.


    0
    cat /home/user/file.mp3 | ssh -C user@host mpg123 -
    Zeben · 2016-03-29 12:30:09 12

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

Benchmark SQL Query
Benchmark a SQL query against MySQL Server. The example runs the query 10 times, and you get the average runtime in the output. To ensure that the query does not get cached, use `RESET QUERY CACHE;` on top in the query file.

Clone all repos from a user with lynx
https://wuseman.github.io/wcloner/

Recursive replace of directory and file names in the current directory.
This should work anywhere perl and grep is available. :P

Convert CSV to JSON
Replace 'csv_file.csv' with your filename.

Tune your guitar from the command line.
This command, taken from play's manual page, plays a synthesized guitar tone for each of the strings on a standard tuned guitar. The command "play" is a part of the package "sox".

dd with progress bar and statistics
Uses the pv utility to show progress of data transfer and an ETA until completion. You can install pv via Homebrew on macOS

Calculate days on which Friday the 13th occurs (inspired from the work of the user justsomeguy)
Friday is the 5th day of the week, monday is the 1st. Output may be affected by locale.

Filter IPs out of files

What is my ip?

List all files modified by a command
This lists all files modified after calling some command using a temporal anchor.


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: