Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Timeline for cli list by gnusay

gnusay gnusay cli Friday, 30-Nov-01 00:00:00 UTC
  • Subscribe
Listed 1 Subscribers 0
  1. Command Line Magic Command Line Magic

    last reboot # See the last several times your system was rebooted. Reboot == that thing you do once in a while for kernel upgrades.

    about 8 hours ago from Net::Twitter in context
  2. Command Line Magic Command Line Magic

    fgrep 28/May/2012 access_log | awk '$1~/\.[a-z][a-z]$/{print $6 " " $7}' # For May 28th, print the req fields for hosts from two letter gTLD

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

    tmux split top # Start "top" in a split window inside your current #tmux session. You can even do this remotely or from the tmux cmd prompt.

    about 11 hours ago from Net::Twitter
  4. Command Line Magic Command Line Magic Rafael SDM Sierra

    echo "export LIBOVERLAY_SCROLLBAR=0" >> ~/.xprofile # Logout/Login required. Will give you back your scrollbars in Ubuntu. Thx @rafaelsdm

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

    printf "$( cat /sys/class/power_supply/BAT?/{voltage,current}_now) * 10 12 ^ 3 k / p" |dc # Show battery power drain (linux) Thx @telent_net

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

    http://ur1.ca/9elqi # CLIMagic 2012 Survey results are out. Everyone is special in some way.

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

    The reason I do it this way is because the cut command can't be used with 'tail -f' like this due to output buffering issues.

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

    means that it will pass a literal $ to awk and thus use awk's $0, which means the whole line.

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

    In that last one, I needed the $COLUMNS variable from bash, but the $0 from awk, so by using "", I let the $COLUMNS through and backslash ..

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

    tail -f log |awk "{print substr(\$0,0,$COLUMNS)}" # Cut log to width of your term. Note use of quotes. COLUMNS is BASH variable.

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

    Happy CLI Day 2012! http://ur1.ca/9eijs

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

    for i in 0 1 2; do mdadm --remove /dev/md$i /dev/sdb$(($i+1)); done # A nice one-liner @kaerast used to remove a failed disk from raid.

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

    cowsay 'Happy Birthday!' | toilet -f term --gay # Cow says Happy Birthday! in rainbow colors.

    about 5 days ago from Net::Twitter
  14. 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 5 days ago from Net::Twitter
  15. Command Line Magic Command Line Magic

    Of course, 3133700000 will be the mother of all epoch dates. April 20th, 20[69] and Unix will be 99.9 years old too. Quite a convergence.

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

    date +%s # Speaking of date, today is the last day you'll see the 1337 prefix in the Unix epoch. Next time will be in 2393. #hackerhalfmonth

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

    date -d 2011-11-21 +%A # What day of the week was November 21st, 2011 on? This requires GNU date for the -d option.

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

    acronym(){ elinks -no-numbering -dump "http://ur1.ca/5zdvm" |sed -r '/(\*{4,}|This definition)/!d'; } # acronym TIMTOWTDI

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

    BTW, next Tuesday, May 29th is CLI Day: http://ur1.ca/9dh2j Thanks @stormdragon2976

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

    zipcode="90210";elinks -dump "http://ur1.ca/9dgn5{zipcode}" | grep -A 4 "Current " # Current weather. Thx @stormdragon2976

    about 6 days ago from Net::Twitter
  • Before
  • List
  • Listed
  • Subscribers

Site notice

  • API
  • Status

Listed

  • Command Line Magic climagic

Subscribers

    (None)

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • 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.1.0-alpha1, 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