Waits URL, then converts. Show Sample Output
apt-get install cpulimit
Trying to check for an open port and missing netcat or nmap? This is the lowest common denominator way to verify a port is accessible from one server to another. This will give you a pretty quick return of 0 if it works. If it fails, it will just hang and takes awhile to timeout. I usually ctrl+c the command. "echo ?$" will give you an exit code other then 0 after you exit. Show Sample Output
Copies command output to clipboard or selection, in this example, the current path, by output of "pwd" command. Use xclip -i to copy to primary selection instead of clipboard, for example. Allowed values for -selection parameter are: buffer-cut, clipboard, primary and secondary
makes sure not to skip children nodemodules credit: https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively
In case you're like me and like your commands to start on clean lines, especially when you're deep into a 10-level directory tree. This can be added to .bashrc. Show Sample Output
Only requires one `exit` to close session.
No need for find ? grep can do it on its own.
Finds javascript lodash/underscore methods in source code. It's not perfect as can be ascertained from the last entry in the output. Would be interested if somebody improves this. Show Sample Output
Get the last run container ID and stop it.
This is very handy for troubleshooting apps connection to internet. Shows an app's outgoing ip/port before and after connection established. Run this command and init the app you're investigating. I used that when trying to understand what is the destination's ip/port needed to open in firewall, for a specific VPN app. Similar for windows cmd: netstat -nafo | find /v "LISTENING" | find /v "0.0.0.0" | find /v "127.0.0.1"
Requires Powershell Core on Linux or Windows Powershell 3.0 Gets the filename of the latest x64 rpm available from java.com
i'm using -x : -x, --one-file-system skip directories on different file systems so mounts points aren't walked trough Show Sample Output
does it's better ? Show Sample Output
Requires Powershell Core on Linux or on Windows Powershell 3.0 Gets the direct url for the most recent version of Java JRE. The package is for 64-bit RPM-based systems. Show Sample Output
"-F" will continue tailing if file is closed and another file opened with same name. This is handy for tailing log files that segment while watching them without having to issue the command again.
This useful command will help to detect bitrate of each audio file in folder where it will run for. Show Sample Output
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: