when ssh is running on a different port
Just type 2 characters and enter, you will be back. Show Sample Output
knows more extension and checks MIME types also, if file extension not matched
init states on solaris are numbered init 0 boot with prompt init 5 shutdown init 6 reboot
Caching-Nameserver Show Sample Output
This command will delete all files and folders except 'skipme'. it could be a file or a folder.
Post all stuff related to Emacs here. And vote for the best ! http://emacs.vote-system.com/
Requires Python; doesn't require a specific server to return your IP.
This is an useful command for when your OS is reporting less free RAM than it actually has. In case terminated processes did not free their variables correctly, the previously allocated RAM might make a bit sluggis over time. This command then creates a huge file made out of zeroes and then removes it, thus freeing the amount of memory occupied by the file in the RAM. In this example, the sequence will free up to 1GB(1M * 1K) of unused RAM. This will not free memory which is genuinely being used by active processes.
This should work on any RPM-based distribution. It's more reliable than trying to parse the content of the files. Show Sample Output
Simply displays your current working directory. Helps when you are buried deep in /etc or some other obscure place. Show Sample Output
the f is for file and - stdout, This way little shorter. I Like copy-directory function It does the job but looks like SH**, and this doesn't understand folders with whitespaces and can only handle full path, but otherwise fine, function copy-directory () { ; FrDir="$(echo $1 | sed 's:/: :g' | awk '/ / {print $NF}')" ; SiZe="$(du -sb $1 | awk '{print $1}')" ; (cd $1 ; cd .. ; tar c $FrDir/ )|pv -s $SiZe|(cd $2 ; tar x ) ; } Show Sample Output
# put this in your .bashrc mkgo (){ mkdir $1 && cd $1 } Show Sample Output
pgrep firefox
- this returns the Process ID for the signal firefox
kill -9 pid
- this kills the signal that had the given pid
cmd1 `cmd1` or cmd1 $(cmd1)
- here is the syntax for cmd2 to be executed first. Then the call to cmd2 is substituted with the output of cmd2, and cmd1 is executed.
If you are on your bed, waching a movie or if you are downloading something, but you whant to sleep. You can use these easy command to power off after X time. The time is in sec. if you whant to wait 1 H, use: sleep 3600; poweroff
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: