72

All commands sorted by votes | commandlinefu.com

 7 years ago
source link: http://www.commandlinefu.com/commands/browse/sort-by-votes
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client



All commands (14,144)

  • Useful when you forget to use sudo for a command. "!!" grabs the last run command.

    sudo !!
    root · 2009-01-26 10:26:48 103
  • python -m SimpleHTTPServer
    pixelbeat · 2009-02-05 11:57:43 58
  • Really useful for when you have a typo in a previous command. Also, arguments default to empty so if you accidentally run: echo "no typozs" you can correct it with ^z

    ^foo^bar
    root · 2009-01-26 13:25:37 53
  • Next time you are using your shell, try typing ctrl-x e (that is holding control key press x and then e). The shell will take what you've written on the command line thus far and paste it into the editor specified by $EDITOR. Then you can edit at leisure using all the powerful macros and commands of vi, emacs, nano, or whatever. Show Sample Output

    ctrl-x e
    fool · 2009-03-11 09:26:05 101
  • When typing out long arguments, such as: cp file.txt /var/www/wp-content/uploads/2009/03/ You can put that argument on your command line by holding down the ALT key and pressing the period '.' or by pressing <ESC> then the period '.'. For example: cd 'ALT+.' would put '/var/www/wp-content/uploads/2009/03/ as my argument. Keeping pressing 'ALT+.' to cycle through arguments of your commands starting from most recent to oldest. This can save a ton of typing.

    'ALT+.' or '<ESC> .'
    atoponce · 2009-03-20 11:36:04 32
  • Particularly useful if you're mounting different drives, using the following command will allow you to see all the filesystems currently mounted on your computer and their respective specs with the added benefit of nice formatting. Show Sample Output

    mount | column -t
    thechile · 2009-03-20 14:18:56 15
  • curl ifconfig.me/ip -> IP Adress curl ifconfig.me/host -> Remote Host curl ifconfig.me/ua ->User Agent curl ifconfig.me/port -> Port thonks to http://ifconfig.me/

    curl ifconfig.me
    aajjk · 2010-04-21 13:10:33 45
  • This is an alternative to cron which allows a one-off task to be scheduled for a certain time.

    echo "ls -l" | at midnight
    root · 2009-01-25 21:07:42 42
  • man ascii
    ntheother · 2009-03-31 10:29:20 8
  • This will output the sound from your microphone port to the ssh target computer's speaker port. The sound quality is very bad, so you will hear a lot of hissing.

    dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp
    morpheus · 2009-02-08 10:10:00 37
  • Example : vim /etc/fstab ## damn <ctrl+u> sudo <ctrl+y> ## like a boss. Example 2 : sudo vim /root/bin/ ##uh... autocomplete doesn't work... <ctrl+u> sudo ls /root/bin ##ah! that's the name of the file! <ctrl+y> sudo vim /root/bin/ ##resume here! Thanks readline!

    <ctrl+u> [...] <ctrl+y>
    adeverteuil · 2010-07-23 03:33:46 16
  • Query Wikipedia by issuing a DNS query for a TXT record. The TXT record will also include a short URL to the complete corresponding Wikipedia entry.You can also write a little shell script like: $ cat wikisole.sh #!/bin/sh dig +short txt ${1}.wp.dg.cx and run it like ./wikisole.sh unix were your first option ($1) will be used as search term. Show Sample Output

    dig +short txt <keyword>.wp.dg.cx
    drizzt · 2009-07-31 16:08:59 167
  • sshfs name@server:/path/to/folder /path/to/mount/point
    ihasn · 2009-02-05 20:17:41 17
  • Makes a partition in ram which is useful if you need a temporary working space as read/write access is fast. Be aware that anything saved in this partition will be gone after your computer is turned off.

    mount -t tmpfs tmpfs /mnt -o size=1024m
    ajrobinson · 2009-02-06 00:33:08 15
  • -p parameter tells wget to include all files, including images. -e robots=off you don't want wget to obey by the robots.txt file -U mozilla as your browsers identity. --random-wait to let wget chose a random number of seconds to wait, avoid get into black list. Other Useful wget Parameters: --limit-rate=20k limits the rate at which it downloads files. -b continues wget after logging out. -o $HOME/wget_log.txt logs the output

    wget --random-wait -r -p -e robots=off -U mozilla http://www.example.com
    starchox · 2009-02-17 22:53:07 17
  • ctrl-l
    mrttlemonde · 2009-03-18 17:38:49 20
  • Useful for checking if there are differences between local and remote files.

    ssh user@host cat /path/to/remotefile | diff /path/to/localfile -
    root · 2009-02-04 11:33:19 25
  • Unreachable_host is unavailable from local network, but it's available from reachable_host's network. This command creates a connection to unreachable_host through "hidden" connection to reachable_host.

    ssh -t reachable_host ssh unreachable_host
    patko · 2009-03-03 23:21:36 11
  • curl -u user:pass -d status="Tweeting from the shell" http://twitter.com/statuses/update.xml
    adamm9 · 2009-02-05 18:33:23 32
  • time read -sn1 (s:silent, n:number of characters. Press any character to stop)

    time read (ctrl-d to stop)
    mrttlemonde · 2009-03-20 22:50:06 19
  • A nice way to use the console in full screen without forget the current time. you can too add other infos like cpu and mem use. Show Sample Output

    while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &
    glaudiston · 2011-02-17 11:13:19 18
  • disown -a && exit
    prayer · 2009-04-10 12:22:34 14
  • Using +F will put less in follow mode. This works similar to 'tail -f'. To stop scrolling, use the interrupt. Then you'll get the normal benefits of less (scroll, etc.). Pressing SHIFT-F will resume the 'tailling'.

    less +F somelogfile
    adamm9 · 2009-02-19 14:33:46 13
  • telnet towel.blinkenlights.nl
    Alioth · 2009-03-26 22:59:48 38
  • getconf LONG_BIT
    caiosba · 2009-08-08 21:22:19 25
  •  1 2 3 >  Last ›

Recommend

  • 57
    • Reddit www.reddit.com 6 years ago
    • Cache

    The votes are in, the fundraiser is over : krita

    r/krita: Krita - Free and open source digital painting application for Illustrators, comic artists, concept artists , matte painters etc.r/krita is for sharing artworks made in Krita, general help, tips and tricks, troubleshooting etc.

  • 39

    Debian votes on init systems LWN.net needs you!Without subscribers, LWN would simply not exist. Please consider signin...

  • 12
    • blog.dharma.io 4 years ago
    • Cache

    Dharma Votes on Prop 15 & Prop 16

    Dharma Votes on Prop 15 & Prop 16 Dharma votes in favor of Prop 15, votes against Prop 16. 2 min read ...

  • 14
    • blog.dharma.io 4 years ago
    • Cache

    Dharma Votes Against Compound Prop 14

    Dharma Votes Against Compound Prop 14 The Collateral Factor for wBTC should be increased more gradually than Prop 14 proposes. < 1...

  • 12
    • blog.dharma.io 4 years ago
    • Cache

    Dharma Votes to Pass Prop 11

    Dharma Votes to Pass Prop 11 Prop 11 is an important change, and Dharma is happy to support the proposal. < 1 min read ...

  • 15
    • alexgaynor.net 4 years ago
    • Cache

    The West Wing Revisited: Five Votes Down

    The West Wing Revisited: Five Votes Down Sun, Oct 5, 2014This episode follows the White House’s attempt to get a gun control bill through congress. The episode begins with the staff finding out that they’re five votes down, an...

  • 4

    使用shell构建多进程的commandlinefu爬虫 commandlinefu是一个记录脚本片段的网站,每个片段都有对应的功能说明和对应的标签。我想要做的就是尝试用shell写一个多进程的爬虫把这些代码片段记录在一个or...

  • 8

    In this post, we will see a comprehensive list of all the MongoDB Collection (tables in sql) commands you will ever need as a MongoDB beginner. I will assume that you are working inside a collection named 'comments' on a MongoDB databa...

  • 6

    Unix Commands Cheat Sheet: All the Commands You Need April 15, 2023 / By Cassandra Lee

  • 5

    Wireshark Cheat Sheet: All the Commands, Filters & Syntax May 17, 2023 / By...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK