Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular
    • Directory

Command Line Magic (climagic)

  1. Command Line Magic Command Line Magic

    If the find command was like a web app, it would only have options for -mtime of 1 day, 1 week, 1 month and 1 year ago.

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

    To clarify, the last one will return any aliases you have set as well. So command -v ls, might return the alias info you have for ls.

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

    command -v cmd_name >/dev/null && echo "cmd_name is available on this system." # A way to check if a prog is available. Thx @mlafeldt

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

    sup # New CLI e-mail client that is more like G-mail in that it uses tags, indexes all mail, has multiple buffers... http://bit.ly/wuuvGU

    about 17 hours ago from Net::Twitter in context
  5. Command Line Magic Command Line Magic

    "A keystroke is worth a hundred mouse clicks, as any Unix user knows." -- sup FAQ

    about 18 hours ago from Net::Twitter in context
  6. Command Line Magic Command Line Magic

    find . -name .htaccess | xargs egrep "(deny|allow) from.*\*" # Find .htaccess files where * is probably mistakenly used to wildcard domains.

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

    zcat access_log.{12..1}.gz |cat - access_log|awk '$6~/POST/ {print $1}' |sort|uniq -c|sort -nr|head -10 # Show top 10 POSTers to website.

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

    zcat access_log.{9..1}.gz |cat - access_log # Create a stream of logs starting with the oldest compressed to newest and combine with latest.

    about 20 hours ago from Net::Twitter
  9. Command Line Magic Command Line Magic

    http://ur1.ca/86y16 # CLIMAGIC quick video: Using comments in the interactive shell.

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

    freeram gigabytes # Example usage of previous function, it uses the units you give as the arg and return. Won't work for terabytes though.

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

    freeram(){ U=${1:-m};U=${U:0:1};free -${U,,} |awk 'NR==3 {print $NF}' |tr -d $'\n' &&echo ${U^^}; } # "free" wrapper that can take unit args

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

    http://bit.ly/atemyram # Reposting. In Linux, the last number on the buffers/cache line is the one you think of as free memory.

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

    free -m | awk 'NR==3 {print $4}' # On Linux, show just the "free ram" (in megabytes) number that you care about. Thx @stradarius

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

    Linux sex: date; unzip; strip; touch; mount; yes; etc.... Windows sex: start; explore; reboot; viruscheck; solitaire

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

    awk {'print $3'} /var/log/httpd/access_log |sort |uniq -c |sort -rn |nl # Ranked list of HTTP AUTH users ordered by times logged in.

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

    telnet "http://ur1.ca/02vxu" # Crowded at the movies tonight? Take your sweetheart to see Star Wars instead. Do it in IPv6.

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

    for i in {1..12} $(grep ^ru <<<$LANG);do printf "\033[32m%10s{\033[31m@\n\033[0m"|tr " " =; done # ASCII bouquet, send today!

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

    lsblk # List block devices (holders and slaves) ( requires util-linux >= 2.19) Thx @kbo

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

    Do you really want to say everything to your computer out loud? Really? Or more importantly, do you want to hear others?

    about 4 days ago from Net::Twitter in context
  20. Command Line Magic Command Line Magic

    The function in the last post will make it so running cal with just one arg less than 13 will display that month in the current year.

    about 4 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

  • API
  • Lockouts explained
  • Search broken

Following 304

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

Followers 537

  • Chris Topher piks3l
  • Guillaume Mazoyer gmazoyer
  • rizitis rizitis
  • nm nm
  • macroron macroron
  • Pablo pdenapo
  • Linux Caribbean linuxcaribbean
  • Захария Стургин redxine

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
2845
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 Status.net. It runs the StatusNet microblogging software, version 1.0.1, 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