Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Timeline for funny list by climagic

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

    See, not all that complex when you break it down. Unless you're not using Linux, then the ext[234] part may be confusing. Sorry.

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

    while read -r f ; do s="Block size: 4096" ; echo "$f $s" ; done # Read each line of input into f and print f with the value of s

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

    s=$( dumpe2fs -h /dev/sda1 2> /dev/null | grep "Block size:" ) # Assign the blocksize line to the variable 's'

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

    dumpe2fs -h /dev/sda1 2> /dev/null | grep "Block size:" # Dump the information about the filesystem /dev/sda1, grepping out the block size.

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

    df -PT | awk '$2~/^ext[234]$/{print $1}' # For each filesystem line, print the device of ones that are ext2, ext3 or ext4. (Linux)

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

    df -PT # List out the filesystems along with their types in POSIX format so that each FS entry is not broken across multiple lines.

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

    If you look at large commands like the last one and it is overwhelming, don't worry; It was for me once too; Break it up and start small.

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

    df -PT |awk '$2~/^ext[234]$/{print $1}' |while read -r f;do s=$(dumpe2fs -h $f 2>/dev/null|grep "Block size:");echo "$f $s";done # blksize

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

    awk '$1>250 { x++ } END {print x}' data # Print the number of lines in the file data where the first column is a number greater than 250.

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

    RT @jamesmslocum: Draw from the commmand line convert -size 100x100 xc:white -fill black -draw 'circle 50,50 60,60' circle.png

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

    li(){ space=$(printf "%${1:-2}s");sed "s/^/$space/"; } # This will turn it into a function you can pipe too. Example: ls -1 | li 5

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

    ls -l | sed 's/^/ /' # Indent every line by two characters on a console display where the far left side is hard to see.

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

    http://bit.ly/17SUs09 # Inspiring story about a child from a broken home who through perseverance became a leader in Comp. Sci.

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

    Apple: Do --everything different.

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

    for i in $(seq 2012 -1 1950);do [ $( diff <(ncal -h 6 2013|tail -n+2) <(ncal -h 6 $i|tail -n+2) |wc -l ) == 0 ] && echo $i;done # June match

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

    http://bit.ly/12LhDIC # What a mom's keyboard might look like. Then again, some moms know 68K Assembly.

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

    Famous user quotes: I didn't change anything. I swear!

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

    http://bit.ly/RnlsNV # Find yourself typing gti instead of git, this will "train" you just like sl does.

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

    sudo apt-get install sl # This will "train" you. Thanks @Scooter789

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

    find . -printf "%TY\n" | sort -n | uniq -c # Show a file count by year file last modified starting from the current directory descending.

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

Site notice

Identi.ca is converting to pump.io some time this week

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