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.


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.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.
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

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Execute a sudo command remotely, without displaying the password

Terminal - Execute a sudo command remotely, without displaying the password
stty -echo; ssh -t HOSTNAME "sudo some_command"; stty echo
2009-03-04 19:44:36
User: jmcantrell
Functions: ssh stty
3
Execute a sudo command remotely, without displaying the password

The ssh command alone will execute the sudo command remotely, but the password will be visible in the terminal as you type it. The two stty commands disable the terminal from echoing the password back to you, which makes the remote sudo act as it does locally.

Alternatives

There are 4 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

An easier way to do this is with the -t flag to OpenSSH, forcing it to allocate a tty even though you're not starting an interactive shell. This allows the remote program to do effectively the same thing that stty is doing. Also makes it handy if you want to do something like ssh -t server 'some-interactive-program'.

Comment by 2bithacker 454 weeks and 6 days ago

Cool, I wasn't aware of that. Thanks for the tip.

Comment by jmcantrell 454 weeks and 6 days ago

Also, is there any reason why you wouldn't want to use -t? Any unexpected side effects?

Comment by jmcantrell 454 weeks and 6 days ago

http://goo.gl/TLJKhQ http://bit.ly/2bgLGS7 jasa konstruksi bangunan

http://goo.gl/TLJKhQ http://bit.ly/2bgLGS7 jasa konstruksi baja wf

http://goo.gl/TLJKhQ http://bit.ly/2bgLGS7 jasa konsultan konstruksi

d

Comment by umam12 57 weeks ago

http://goo.gl/zhFEpe http://bit.ly/2bF0zgB Daftar Harga Besi Pipa Baja Schedule 40 Dari Distributor Pabrik

http://goo.gl/AfxmL4 http://bit.ly/2c5pYC8 Daftar Harga Besi Pipa Baja Schedule 80 Dari Distributor Pabrik

dd

Comment by umam12 57 weeks ago

http://bit.ly/1P41Awa https://goo.gl/L1t3uj undangan pernikahan undangan pernikahan unik dan murah

http://bit.ly/1P41Awa https://goo.gl/L1t3uj undangan pernikahan artis undangan pernikahan elegan dan murah

dds

Comment by umam12 57 weeks ago

http://goo.gl/fgh1ds http://bit.ly/1M92mpb

https://goo.gl/JdUZyB http://bit.ly/2fj747M

https://goo.gl/tN8zV8 http://bit.ly/2fxUzs5

https://goo.gl/ukAjdu http://bit.ly/2futS4Y

https://goo.gl/hLXjHy http://bit.ly/2ehbUW8

https://goo.gl/yDMlpq http://bit.ly/2fyvR8K

https://goo.gl/mfqLZU http://bit.ly/2fWa8tV

https://goo.gl/qWkW28 http://bit.ly/2fyAqjj

https://goo.gl/vnyuHb http://bit.ly/2fxOGv0

https://goo.gl/HuKYjz http://bit.ly/2fzHyua

https://goo.gl/wkPEKV http://bit.ly/2ehdd7L

https://goo.gl/Z0J6LF http://bit.ly/2eQlCLv

https://goo.gl/Aat085 http://bit.ly/2ehaXgv

https://goo.gl/74Ao5K http://bit.ly/2eyKRRI

https://goo.gl/LDVtJJ http://bit.ly/2fW5YT9

https://goo.gl/cK0YaF http://bit.ly/2eHDzhQ

https://goo.gl/KnGFuL http://bit.ly/2fzLcEC

http://goo.gl/0MIIQL http://bit.ly/1XHRm6d

http://goo.gl/TPidJv http://bit.ly/1ivQx0e

https://goo.gl/x9MnRB http://bit.ly/2fuxSmd

https://goo.gl/GonlNh http://bit.ly/2bgLGS7

https://goo.gl/XZ6zpY http://bit.ly/1P41Awa

https://goo.gl/8IVNQ9 http://bit.ly/2eMs6Km

https://goo.gl/M52XmL http://bit.ly/2eMs6Km

https://goo.gl/TrcRsU http://bit.ly/2fllKFP

https://goo.gl/8IVNQ9 http://bit.ly/2fllKFP

listrik dan panas, serta mempunyai titik cair tinggi. Bijih logam ditemukan dengan cara penambangan yang terdapat dalam keadaan murni atau bercampur dengan unsur-unsur seperti karbon, sulfur, fosfor, silikon, serta kotoran seperti tanah liat, pasir, dan tanah.

http://goo.gl/pWtlO9 http://bit.ly/2bz4aJD

http://goo.gl/f0vB7K http://bit.ly/2bO3W3i

http://goo.gl/uTL5Cu http://bit.ly/2bz1A6v

http://goo.gl/lJRzzt http://bit.ly/2bUsUjy

http://goo.gl/DdDqMr http://bit.ly/2blOnz1

http://goo.gl/zhFEpe http://bit.ly/2bF0zgB

http://goo.gl/AfxmL4 http://bit.ly/2c5pYC8

http://goo.gl/GPxl0D http://bit.ly/2bz25NV

http://goo.gl/1i7Obd http://bit.ly/2bz1JHl

http://goo.gl/neJ80l http://bit.ly/2beifS1

http://goo.gl/sHibPg http://bit.ly/2bfykUC

http://goo.gl/Mj9qNp http://bit.ly/2bh5XlK

http://goo.gl/o5s4FC http://bit.ly/2bM119U

http://goo.gl/3j2MZZ http://bit.ly/2bAvnQT

http://goo.gl/lHUCmg http://bit.ly/2bOcOpF

http://goo.gl/KlVYYP http://bit.ly/2bh7Uyz

http://goo.gl/cPzAze http://bit.ly/2bOez5Y

http://goo.gl/1tIqEu http://bit.ly/2bfzVd7

https://goo.gl/8IVNQ9 http://bit.ly/2eMs6Km

https://goo.gl/M52XmL http://bit.ly/2eMs6Km

https://goo.gl/TrcRsU http://bit.ly/2fllKFP

https://goo.gl/8IVNQ9 http://bit.ly/2fllKFP

https://goo.gl/ZZ66dD http://bit.ly/2eUXZAP

Comment by umam12 49 weeks and 6 days ago

Your point of view

You must be signed in to comment.