Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Command Line Magic (climagic)

  1. 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 2 hours ago from Net::Twitter
  2. 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 2 days ago from Net::Twitter
  3. 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 2 days ago from Net::Twitter
  4. 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 3 days ago from Net::Twitter
  5. 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 3 days ago from Net::Twitter
  6. 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 3 days ago from Net::Twitter
  7. Command Line Magic Command Line Magic

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

    about 4 days ago from Net::Twitter in context
  8. 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 4 days ago from Net::Twitter
  9. 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 5 days ago from Net::Twitter
  10. 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 5 days ago from Net::Twitter in context
  11. 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 6 days ago from Net::Twitter
  12. 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 6 days ago from Net::Twitter
  13. Command Line Magic Command Line Magic

    OIFS=$IFS;IFS=$'\n';vim $( grep -l '$fill' *.pl );IFS=$OIFS # Edit the set of files that contain the variable $somevar.

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

    rpm -qa --queryformat "%{BUILDHOST} %{NAME}\n"|awk '$1!~/(redhat\.com|fedoraproject\.org)$/' # List RPMs from unofficial repos. #redhat

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

    wget mirror\.server/centos5.9/disc{2,4}of9.iso # Get disc 2 and 4 using brace expansion. Because they couldn't fit "basic stuff" on disc1.

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

    zcat dump.sql.gz | sed -n '5000,7500p' > newdump.sql # Put lines 5000 through 7500 from a large compressed SQL file into a new file.

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

    ps aux |grep vm1 |cut -c 1-$COLUMNS # ps sends full line when output is a pipe so you can grep past the line and then cut it to term width.

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

    Don't you love it when you're watching some new documentary and all the scientists are using the command line for their work.

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

    Eventually the developers will add every option for every purpose to every program and I'll be out of a job and Unix will be no fun.

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

    df -Pl -t ext3 -t ext4 | tail -n+2 | awk '{ sum+=$3 } END { print sum/2**20 }' # Print disk space used on all ext3 or 4 FS in GiB.

    about 10 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 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
4688
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