Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Notices by Command Line Magic (climagic), page 2

  1. Command Line Magic Command Line Magic

    echo "Would you like to play a game?" | (espeak || say -v Fred) # Well would you? #wargames30

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

    The problem with SSD drives is you can't hear the grinding of a disk IO heavy process getting carried away.

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

    for i in {1..99}; do echo "$i Enter to continue or Ctrl-C to stop."; read; done # You can use 'read' as a way to step through for loops.

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

    ascii || man ascii # Quick access to the ASCII character table either through the ascii program or the man page if you don't have the prog.

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

    pv bigdump.sql.gz | gunzip | mysql # restore a #mysql dump with progressbar and ETA. Thx @skygreg

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

    awk -F: '$NF == "/bin/tcsh" {print $1}' /etc/passwd # If the last field matches /bin/tcsh (shell), then print the first field (username)

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

    Happy Birthday Marc Ewing @marcewing, creator of Red Hat Linux and also the origin of its name (he wore the red hat).

    about 10 days ago from Net::Twitter
  8. Command Line Magic Command Line Magic Richard Cunningham

    Tip by @rythie: pick up where you left off, put "echo $PWD > ~/.pwd" in .bash_logout and "OLDPWD=$(cat ~/.pwd)" in .bashrc, then "cd -"

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

    (cmd1;cmd2;cmd3) # When running commands in a subshell, you can use job control (Ctrl-C, Ctrl-Z, fg, bg) on the subshell as a whole unit.

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

    http://bit.ly/11iO00y # @creaktive has expanded the rainbarf program so that it can work in the zsh PS1 prompt. Animated prompt!

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

    convert -size 1280x720 plasma:green-blue background.png # Create a 1280x720 color plasma image. Different each time. Uses ImageMagick

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

    export LESS="-S -j10 -i" # This environment variable will invoke 'less' with these options when it is used. Like when viewing a man page.

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

    less -j10 /var/log/syslog # Set the search jump target to 10 lines down so that you see 9 previous lines of context on searches within less.

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

    :w !sudo tee % # overwrite file in vim with root perms. This stackexchange page http://bit.ly/Yqmmuy explains how that works. Thx @shugelee

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

    scrot -s tmp.png ; display tmp.png # Take a screenshot of a selected part of a window or selected part of screen and display it.

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

    RT @isafarnik: Use #cygwin? ctrl+click on URLs in mintty.exe will open them in a browser #headexplode

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

    ":-P" -- Albert Einstein

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

    while sleep 1m;do [[ "$(date +%l:%M%P)" == "10:00pm" ]]&&echo "Its 10pm, do you know where your children are?"|(espeak||say);done # Its 10pm

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

    while :;do t=($(date +"%l %M %P")); [[ "${t[1]}" == 0 ]] && echo "${t[0]} ${t[2]}" |(espeak||say); sleep 1m; done # Speak the hour

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

    while stat -c"%s" .vm1.img.zYGFiZ; do sleep 15; done; sleep 30; stat vm1.img && virsh define vm1.xml && virsh start vm1 # Start after rsync.

    about 14 days ago from Net::Twitter
  • After
  • 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 752

  • Kunal Gautam kunalgautam
  • cl34r cl34r
  • Richard Dominguez r1chardq
  • Elias Schwerdtfeger goebelmasse
  • marc0s marc0s
  • György Gerényi mounteen
  • m2951413 m2951413
  • Michael Armbrecht irrelefants

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
4687
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