Tells you where's left and right. Handy if you can't ever remember them. Show Sample Output
ffmpeg mp4 to facebook live steam
Want to show something on your machine to someone over the web? Don't copy it or upload it somewhere. Just run "webshare" and the current directory and everything beneath it will be served from a new web server listening on port 8000. When your pal is finished, hit control-c. Found at www.shell-fu.org/lister.php?id=54
Works only on Linux. Last option (n) turn name of service resolving (/etc/services) off. Show Sample Output
I wasn't sure how to display the image, so I thought I'd try xml for a different twist. Show Sample Output
Let bash do the work by converting the initial of a string to an uppercase Show Sample Output
Just replace 15m with desired time. no suffix or 's' for seconds; 'h' for hours You need to be root or in audio group to write to /dev/dsp. You may use yes | head -n 2000 for about 1 second beep. Wrote this as echo -e '\a' not always works as desired (ex. visual bell)
This is the best way I have found to search out an application when I am not sure the title. Grep is just to remove anything that does not contain the term in the title or short description (lots of things might include the search term in the description, such as libraries used by the application) Show Sample Output
Maybe very limited in its applicability but could be of use at times. Show Sample Output
This is great when you need to reboot the system-server, or your own daemon that has gone crazy
Handles spaces in file names and directories. Optionally change directories as well by pipe to tr from dirname.
Finds all files recursively from your working directory, matching 'aMethodName', except if 'target' is in that file's path. Handy for finding text without matching all your files in target or subversion directories.
Found it on: http://stackoverflow.com/questions/318789/whats-the-best-way-to-open-and-read-a-file-in-perl The yet most simple way to read all the contents of a file to a variable. I used it in a perl script to replace $text="`cat /sys/...`", and stipping down 9 secs of runtime due less forks
Thx Mass1 for the sharing
It will list your machine's ethernet ports speed Show Sample Output
Replace grep | sed with single awk script.
Check that all websites on the current server are working as expected. This is a quick easy way to do that. Show Sample Output
ffmpeg covert m3u8 to facebook live stream
this works on Solaris, so not better than the "only-GNU"-tool :-( I think, there is no one-liner for this, that will work on all *nix-es Show Sample Output
I don't know if the --spider option works to execute a script, but it might be worth trying. Note that the Drupal project uses the following in a cron job.
wget -O - -q http://localhost/drupal/cron.php
The output is sent to standard out so it can be logged by cron.
Function: char * crypt (const char *key, const char *salt) The crypt function takes a password, key, as a string, and a salt character array which is described below, and returns a printable ASCII string which starts with another salt. It is believed that, given the output of the function, the best way to find a key that will produce that output is to guess values of key until the original value of key is found. The salt parameter does two things. Firstly, it selects which algorithm is used, the MD5-based one or the DES-based one. Secondly, it makes life harder for someone trying to guess passwords against a file containing many passwords; without a salt, an intruder can make a guess, run crypt on it once, and compare the result with all the passwords. With a salt, the intruder must run crypt once for each different salt. For the MD5-based algorithm, the salt should consist of the string $1$, followed by up to 8 characters, terminated by either another $ or the end of the string. The result of crypt will be the salt, followed by a $ if the salt didn't end with one, followed by 22 characters from the alphabet ./0-9A-Za-z, up to 34 characters total. Every character in the key is significant. For the DES-based algorithm, the salt should consist of two characters from the alphabet ./0-9A-Za-z, and the result of crypt will be those two characters followed by 11 more from the same alphabet, 13 in total. Only the first 8 characters in the key are significant. Show Sample Output
Useful to duplicate and change iptables rules
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: