Command Line Magic

@climagic

Cool Unix/Linux Command Line tricks you can use in 140 characters or less. Here mostly to inspire all to try more. Read docs first, run later.

BASHLAND
ನವೆಂಬರ್ 2009 ಸಮಯದಲ್ಲಿ ಸೇರಿದ್ದಾರೆ

ಟ್ವೀಟ್‌ಗಳು

ನೀವು @climagic ಅವರನ್ನು ತಡೆಹಿಡಿದಿರುವಿರಿ

ಈ ಟ್ವೀಟ್‌ಗಳನ್ನು ವೀಕ್ಷಿಸಲು ನೀವು ಖಚಿತವಾಗಿ ಬಯಸುವಿರಾ? ಟ್ವೀಟ್ ವೀಕ್ಷಣೆಯು @climagic ಅವರ ತಡೆತೆರವುಗೊಳಿಸುವುದಿಲ್ಲ

  1. ಪಿನ್ ಮಾಡಿದ ಟ್ವೀಟ್
    ಸೆಪ್ಟೆಂ 7

    Some of you have been asking me to sign up for this Mastodonia thing or whatever it's called. Well, I have. Here you go: Mostly I'll cross post, but there will be some unique content and 280+ character commands there.

    ರದ್ದುಗೊಳಿಸು
  2. 2 ಗಂಟೆಗಳ ಹಿಂದೆ

    ionice -c 3 cp vm1.img vm1-clone.img # Copy a file using "ionice -c 3" to give it idle priority to reduce load on the system.

    ರದ್ದುಗೊಳಿಸು
  3. 3 ಗಂಟೆಗಳ ಹಿಂದೆ

    fdupes -r dir > dupes.txt # Find file duplicates in 'dir' recursively based on size and mdsum and log to dupes.txt.

    ರದ್ದುಗೊಳಿಸು
  4. 4 ಗಂಟೆಗಳ ಹಿಂದೆ

    awk -F: {'print $1 ":" $2'} messages |uniq -c # Count syslog hits per minute in your messages log file. Useful for doing quick stats.

    ರದ್ದುಗೊಳಿಸು
  5. 5 ಗಂಟೆಗಳ ಹಿಂದೆ

    One of the best fonts I've seen for use in a terminal:

    ರದ್ದುಗೊಳಿಸು
  6. 6 ಗಂಟೆಗಳ ಹಿಂದೆ

    date -d @728737200 # Turn a Unix epoch time back into a human readable date. This is a not widely known feature of the GNU date command.

    ರದ್ದುಗೊಳಿಸು
  7. 7 ಗಂಟೆಗಳ ಹಿಂದೆ

    rename 's/^unwanted//' *.jpg # Remove the prefix 'unwanted' from the beginning of each filename with .jpg suffix in CWD.

    ರದ್ದುಗೊಳಿಸು
  8. 8 ಗಂಟೆಗಳ ಹಿಂದೆ

    ssh -D 8989 you@remotehost # Create a dynamic SOCKS5 proxy on port 8989 using an SSH connection. Some apps can be configured to use this.

    ರದ್ದುಗೊಳಿಸು
  9. 9 ಗಂಟೆಗಳ ಹಿಂದೆ

    Option Mnemonics: tar xzvf = Xtract Ze Vucking Files [said in thick German accent]

    ರದ್ದುಗೊಳಿಸು
  10. 10 ಗಂಟೆಗಳ ಹಿಂದೆ

    # Useful python command line one liners.

    ರದ್ದುಗೊಳಿಸು
  11. 11 ಗಂಟೆಗಳ ಹಿಂದೆ

    comm -3 <(ls -1 dir1) <(ls -1 dir2) # Compare the contents of 2 dirs. Show only 2 columns, each for files unique to the directory.

    ರದ್ದುಗೊಳಿಸು
  12. 12 ಗಂಟೆಗಳ ಹಿಂದೆ

    sleep 15m; notify-send "Go pick up the pizza" # Remember to go get the food. In X, this will send a notification to the screen.

    ರದ್ದುಗೊಳಿಸು
  13. 13 ಗಂಟೆಗಳ ಹಿಂದೆ

    qalc "145Gibyte / 1.35(Mibyte/second) to day" # How many days will it take to transfer 145GiB at 1.35MiB/sec? Use qalc!

    ರದ್ದುಗೊಳಿಸು
  14. 14 ಗಂಟೆಗಳ ಹಿಂದೆ

    lsof -Pan -i tcp -i udp # show all listening TCP/UDP ports

    ರದ್ದುಗೊಳಿಸು
  15. 15 ಗಂಟೆಗಳ ಹಿಂದೆ

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

    ರದ್ದುಗೊಳಿಸು
  16. 15 ಗಂಟೆಗಳ ಹಿಂದೆ

    cat longdomainlist.txt | rev | sort | rev # group subdomains by domain. Good use of rev..

    ರದ್ದುಗೊಳಿಸು
  17. 16 ಗಂಟೆಗಳ ಹಿಂದೆ

    # New CLIMagic video! Editing a MIDI music file in a binary file editor.

    ರದ್ದುಗೊಳಿಸು
  18. 17 ಗಂಟೆಗಳ ಹಿಂದೆ

    diff <(grep = config.txt) <(grep = config.txt-new) # Compare just the assignment lines of two config files that use = for value assignment.

    ರದ್ದುಗೊಳಿಸು
  19. 17 ಗಂಟೆಗಳ ಹಿಂದೆ

    ps aux | awk '{if ($8=="Z") { print $2 }}' # On Linux, print out a list of the process IDs that are in the zombie state.

    ರದ್ದುಗೊಳಿಸು
  20. 19 ಗಂಟೆಗಳ ಹಿಂದೆ

    exec -a vim nethack # Now if your boss runs ps aux on your system, they will think you're working, not playing a game.

    ರದ್ದುಗೊಳಿಸು
  21. 20 ಗಂಟೆಗಳ ಹಿಂದೆ

    HISTIGNORE="clear:bg:fg:cd:cd -:exit:date:w:* --help" # Colon seperated list of exact commands to ignore for storing in history in BASH.

    ರದ್ದುಗೊಳಿಸು

ಲೋಡಿಂಗ್ ಸಮಯ ಸ್ವಲ್ಪ ತೆಗೆದುಕೊಳ್ಳುತ್ತಿರುವಂತೆನಿಸುತ್ತದೆ.

Twitter ಸಾಮರ್ಥ್ಯ ಮೀರಿರಬಹುದು ಅಥವಾ ಕ್ಷಣಿಕವಾದ ತೊಂದರೆಯನ್ನು ಅನುಭವಿಸುತ್ತಿರಬಹುದು. ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ ಅಥವಾ ಹೆಚ್ಚಿನ ಮಾಹಿತಿಗೆ Twitter ಸ್ಥಿತಿಗೆ ಭೇಟಿ ನೀಡಿ.

    ಇದನ್ನೂ ಸಹ ನೀವು ಇಷ್ಟಪಡಬಹುದು

    ·