sometimes this helps, when eject button fails
This command print the last line of a file with in first position the total lines number. Show Sample Output
when bad day comes...
This command is used to stream a video file as live to some streaming server like Wowza, Red5 . etc
This sed command will search for 4.2.2.2 in all lines of test.txt and replace comment symbol ";" . You can use it for other purpose also.
Output appears in terminal where dd is running, not where command is executed. Send a USR1 signal to dd. Finds the most recently run dd command
The command will use avconv to convert any video file in to MPEG2 format which will be added to a DVD project.
List local accounts and their SIDs (*-500 is the original local Administrator, *-501 is the original local Guest, more below). This is helpful in identifying local accounts that are not disabled, don't have an expiring password, etc. Well-Known SIDs https://support.microsoft.com/en-us/kb/243330 Show Sample Output
This version handles directory names with spaces properly
For some of my web servers I setup and configure, for scaling I use the httpd.conf settings for these. Sometimes I forget which servers are prefork and which are worker MPM, so I use this to remind myself. Show Sample Output
Display the $PATH with one line per entry, in a pager. Show Sample Output
If you want a sequence that can be plotted, do: seq 8 | awk '{print "e(" $0 ")" }' | bc -l | awk '{print NR " " $0}' Other bc functions include s (sine), c (cosine), l (log) and j (bessel). See the man page for details. Show Sample Output
This wgets the iso directly to the USB device, replace /dev/sdb with the device name of the USB stick. After wget finishes you will be able to boot the .iso file from the USB stick.
Pipes the output of the previous command into less. Very useful when command output is too big to fit in a tty console Show Sample Output
loop through files in .php extension make a .bak of each of them find the base64_decode function and remove it
A basic usage
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.
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: