Well its just appending your public key to the remote hosts authorized_keys, but can get messy logging in and out
If you're on a system that doesn't have nl, you can use cat -n.
Col 1 is swapped sum in kb Col 2 is pid of process Col 3 is command that was issued Show Sample Output
when someone mail you his ssh public key, and the lines are broken with '\n', you can reconstruct a new file with one key by line with this command. Show Sample Output
A quick way of know the temperature info. Show Sample Output
Get a list of all the unique hostnames from the apache configuration files. Handy to see what sites are running on a server.
Probably the most info for the least work. Show Sample Output
This command allows you to stream your log files, including gziped files, into one stream which can be piped to awk or some other command for analysis.
Note: if your version of 'find' supports it, use:
find /var/log/apache2 -name 'access.log*gz' -exec zcat {} + -or -name 'access.log*' -exec cat {} +
At times I find that I need to loop through a file where each value that I need to do something with is not on a separate line, but rather separated with a ":" or a ";". In this instance, I create a loop within which I define 'IFS' to be something other than a whitespace character. In this example, I iterate through a file which only has one line, and several fields separated with ":". The counter helps me define how many times I want to repeat the loop.
This will you combine the DDP output of DVD Studio Pro back into a standard ISO disk image so that you can double-check the DDP output process.
Kills all process that belongs to the user that runs it - excluding bash, sshd (so putty/ssh session will be spared). The bit that says grep -vE "..." can be extended to include ps line patterns that you want to spare. If no process can be found on the hitlist, it will print # NOTHING TO KILL. Otherwise, it will print # KILL EM ALL, with the cull list.
Apply to almost linux distroes. Show Sample Output
Nice neat feedback showing contact infomation for as many domains as you wish to feed it. I used a list of domains, each one on a new line as supplied by our registar, as we needed to check they were all upto date and back them up as we are updating them all.
Nice command for when you don't have scp available for whatever reason. Works with binaries.
This may be listed already but this command is useful to untar a specific directory to a different server.
Concatenate file1 and file2, define paragraph, and search within each paragraph the ones containing the search string, and print just these paragraphs! Show Sample Output
Change your exported xml love list from last.fm, into Song: songname Artist: artistname Show Sample Output
An advanced possibility to count the lines of code like in #8394 Show Sample Output
Put this command on /etc/rc.local.
Add DuckDuckGo Search as search provider on gnome-shell/gnome3 . Needs root permission. To see the results, use alt+f2 and then type r.
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: