wget ? server to server files transfer
kded --version return this Qt: 3.3.8b KDE: 3.5.10 KDE Daemon: $Id: kded.cpp 711061 2007-09-11 09:42:51Z tpatzig $ awk -F: ................. Awk Field separator NR == 2 ................. Register Number, second line {print $2} ............... second field sed 's/\s\+//g' .......... remove one space or more \s\+ changing by nothing Show Sample Output
gets network ports only ones for the sshd service only logged in a specific user (changed for public posting) only in a specific localhost:port range not IPv6 Only the part of the response after the ":" character Only the part of the response before the 1st space Output is just the rssh port
I often run some command that takes a while to finish. By putting the say command afterward, I get an audio notification. Please note that this command (say) only works on Mac OS X and not Linux.
Compresses each file individually, creating a $fileneame.tar.gz and removes the uncompressed version, usefull if you have lots of files and don't want 1 huge archive containing them all. you could replace ls with ls *.pdf to just perform the action on pdfs for example.
In order to create a new encrypted filing system managed by cryptmount,
you can use the supplied 'cryptmount-setup' program, which can be used
by the superuser to interactively configure a basic setup.
Alternatively, suppose that we wish to setup a new encrypted filing
system, that will have a target-name of "opaque". If we have a free
disk partition available, say /dev/hdb63, then we can use this directly
to store the encrypted filing system. Alternatively, if we want to
store the encrypted filing system within an ordinary file, we need to
create space using a recipe such as:
dd if=/dev/zero of=/home/opaque.fs bs=1M count=512
.
cryptmount --generate-key 32 opaque
.
cryptmount --prepare opaque
.
mke2fs /dev/mapper/opaque
.
cryptmount --release opaque
.
mkdir /home/crypt
.
cryptmount -m opaque
.
cryptmount -u opaque
For detail see sample output
Show Sample Output
This counts all established sessions on port 80. You can change :80 to any port number you want to check. Show Sample Output
This command lists all the directories in SEARCHPATH by size, displaying their size in a human readable format. Show Sample Output
Files saved on a windows machine use different ascii characters for lines turns. When viewing such files in VI the will most often have a ^M(control-VM) character at the end of each line. This command will remove all occurrences of that character
Emacs backs up previous versions by default.
use it to stagger cronjob or to get a random number increase the range by replacing 100 with your own max value Show Sample Output
just replace the number 5 with the variable you want , and the xpenguins software with the one you want Show Sample Output
Nothing special about hashing here, only the use of cut, I think, could result at fewer keystrokes. Show Sample Output
executed on SLES 11.2
Run this in your music folder, or give the path directly after "find". The sed pattern filters away the basename. Show Sample Output
The same as the other user, but smarter, using -d and -f
Command to create a dummy file (full of nulls). Useful for testing e.g. file transfers when no file is at hand. bs = blocksize, count = filesize in kilobytes
unrar e ... extracts all files into current directory, without archived subdirectories order. unrar x is more accurate command.
Depending on your installation, when you run ps you will only get the first 40 or so characters displayed. In order to view the entire string, use /usr/ucb/ps on Solaris.
Of course, this command must be executed at a GRID User Interface lhcb - name of your VO, substitute it with the one you are interested it. Show Sample Output
This obtains a list of open connections that a user is connected to if he/she is using a SSH tunnel
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: