Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Command Line Magic (climagic)

  1. Command Line Magic Command Line Magic

    mv -v www.example.com{,-oldsite} && mv -v {dev,www}.example.com # Swap out the old website and replace with the dev site in one move.

    about 3 hours ago from Net::Twitter
  2. Command Line Magic Command Line Magic

    exec -a vim nethack # Now if your boss runs ps aux on your system, they will think you're working, not playing a game.

    about 13 hours ago from Net::Twitter
  3. Command Line Magic Command Line Magic

    exec su - $USER # Restart your login again with same $SHLVL in place. Allows new group assignments to take effect.

    about 14 hours ago from Net::Twitter
  4. Command Line Magic Command Line Magic

    !tar:p # Print out the last tar command used in your history. Then type !tar to run it again.

    about a day ago from Net::Twitter
  5. Command Line Magic Command Line Magic

    sshfs user@remotehost:/remotedir mydir # sshfs is a nice util that uses FUSE and SSH to mount a remote directory as a local one.

    about 2 days ago from Net::Twitter
  6. Command Line Magic Command Line Magic

    777 are great numbers in Vegas, but horrible numbers on your files and directories.

    about 2 days ago from Net::Twitter
  7. Command Line Magic Command Line Magic

    http://ur1.ca/dy9i0 # A site that performs static analysis of your shell code and shows warnings and errors inline. Thx @kultapanda

    about 2 days ago from Net::Twitter
  8. Command Line Magic Command Line Magic

    egrep -v "^#|^$" httpd.conf # display the httpd.conf file contents and exclude blank lines and lines that start with comment character.

    about 2 days ago from Net::Twitter
  9. Command Line Magic Command Line Magic

    paste <(cal 2013) <(cal 2014) # Look at the full year calendar for 2013 and 2014 side by side.

    about 3 days ago from Net::Twitter
  10. Command Line Magic Command Line Magic

    On that last one I should have clarified, it counts number of lines with URLs, not total URLs if there are more than one per line.

    about 4 days ago from Net::Twitter
  11. Command Line Magic Command Line Magic

    for f in * ; do l=$( grep http:// "$f" | wc -l ) ; echo "$l $f" ; done > urls-in-files-count.txt # Count number of URLs in each file.

    about 4 days ago from Net::Twitter
  12. Command Line Magic Command Line Magic

    o="";while [[ -z $o ]];do o=$(curl -s example\.com|grep 'Some text you are expecting eventually' );sleep 5m;done # Check website for text.

    about 6 days ago from Net::Twitter
  13. Command Line Magic Command Line Magic

    Unix Bands: The Whois, Ctrl-Z top, AC/DC++, Iron RAIDen, /bin/joevi, Dev Leopard, Run-BSD, The Piping Heads, YES (of course) #geekbandnames

    about 6 days ago from Net::Twitter
  14. Command Line Magic Command Line Magic

    mplayer -vo null pianoconcert.mp4 # Play just the audio track of a video by setting the video output to null.

    about 6 days ago from Net::Twitter
  15. Command Line Magic Command Line Magic

    ip addr show # And so can you! (Only if you're a Linux user though)

    about 6 days ago from Net::Twitter in context
  16. Command Line Magic Command Line Magic

    http://bit.ly/16kf7tU # @runmoore sent in his command line cheat sheet. Nice penguin. Share yours too and I'll forward good ones.

    about 7 days ago from Net::Twitter
  17. Command Line Magic Command Line Magic

    awk '/listinfo/{print $1}' mailman-access_log |egrep -v "(yourdomain\.com|^1.2.3.4)$"|sort|uniq # Who besides you has been visiting mailman

    about 8 days ago from Net::Twitter
  18. Command Line Magic Command Line Magic

    time cat # A simple stopwatch that works more universally. Use Ctrl-D to stop. Check elapsed or real time in output.

    about 8 days ago from Net::Twitter in context
  19. Command Line Magic Command Line Magic Matt

    for d in /proc/[0-9]*; do echo $(< $d/oom_score) $(tr '\0' ' ' < $d/cmdline);done |sort -rn|head # Top Linux OOM score cmds. Thx @brimston3

    about 8 days ago from Net::Twitter
  20. Command Line Magic Command Line Magic

    http://bit.ly/x0j9Uz # A reminder since its still a problem. Don't use libvte based terms (gnome-terminal, Terminator and others) until read

    about 8 days ago from Net::Twitter
  • Before

User actions

  • Subscribe
  • List
Command Line Magic

Command Line Magic

BASH

http://suso.suso.org/xulu/Command_Line_Magic

Cool Unix/Linux Command Line tricks you can use in 140 characters or less.

Tags
  • #aix
  • #bash
  • #cli
  • #comedy
  • #commandline
  • #csh
  • #funny
  • #linux
  • #opensource
  • #oss
  • #osx
  • #popular
  • #programming
  • #puzzles
  • #sysadmin
  • #unix
  • #zsh

Site notice

Identi.ca is converting to pump.io on 1 June 2013

Following 297

  • dno dno
  • Захария Стургин redxine
  • synaesthesin synaesthesin
  • Neil Hodges takeshitakenji
  • Moose Foinbrek foinbrek
  • Sylvain Carle afroginthevalley
  • Hex hex
  • John Sullivan johnsu01

Followers 753

  • H Masoud shm0
  • Kunal Gautam kunalgautam
  • cl34r cl34r
  • Richard Dominguez r1chardq
  • Elias Schwerdtfeger goebelmasse
  • marc0s marc0s
  • György Gerényi mounteen
  • m2951413 m2951413

Groups 13

  • GNU's Not Unix gnu
  • Mac Users mac
  • Linux linux
  • Mac OS X macosx
  • The FreeBSD Project freebsd
  • Fedora users fedora
  • The Unix Operating Systems unix
  • A webcomic of romance, sarcasm, math, and language xkcd

Lists 19

    puzzles , comedy , funny , popular , oss , opensource , cli , commandline , osx , aix , programming , sysadmin , unix , linux , csh , zsh , bash , line , command

Statistics

User ID
110051
Member since
18 Dec 2009
Notices
4696
Daily average
4

Feeds

  • Activity Streams
  • RSS 1.0
  • RSS 2.0
  • Atom
  • FOAF
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by E14N. It runs the StatusNet microblogging software, version 1.1.0-release, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal