Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/

Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Hide

Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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:

Hide

News

2012-05-20 - test
test
2012-05-20 - test
test
2012-05-20 - test
test
2012-05-20 - Test tweets
YU not working?
Hide

Tags

Hide

Functions

Commands using nohup

Commands using nohup from sorted by
Terminal - Commands using nohup - 10 results
nohup cat /dev/ttyS0 | tee -a llamadas.db&
nohup df -k | sort -rn 12
nohup ping -i1 www.google.com &
nohup nautilus &
nohup gnome-open . 0</dev/null 1>/dev/null 2>/dev/null&
2010-03-22 07:19:37
User: drunkcoder
Functions: nohup
-1

this will open the current directory in nautilus detached from your terminal.

nohup VBoxHeadless -p 3052 -startvm ServidorProducao &
nohup /bin/sh myscript.sh 1>&2 &>/dev/null 1>&2 &>/dev/null&
2009-08-18 07:24:52
User: AskApache
Functions: nohup
6

This command runs your shell script in the background with no output of any kind, and it will remain running even after you logout.

[[ $(COLUMNS=200 ps faux | awk '/grep/ {next} /ssh -N -R 4444/ {i++} END {print i}') ]] || nohup ssh -N -R 4444:localhost:22 user@relay &
2009-03-31 09:39:59
User: j0rn
Functions: awk nohup ps ssh
Tags: ssh cronjob
3

I find it ugly & sexy at the same time isn't it ?

nohup <command> 2> /dev/null > /dev/null &
2009-03-09 16:54:04
User: AmadeusZull
Functions: nohup
2

I'm sure this can be piped into another way. Please share!

nohup <command> &
2009-02-19 14:45:04
User: gnawa
Functions: nohup
4

puts command in background and sends its output to nohup.out file

it will not die if you log out fromyour shell session ;-)