Most powerful examples of Unix commands or scripts every programmer should know

后端 未结 25 1513
遇见更好的自我
遇见更好的自我 2021-01-29 18:14

There are many things that all programmers should know, but I am particularly interested in the Unix/Linux commands that we should all know. For accomplishing tasks that we may

25条回答
  •  心在旅途
    2021-01-29 18:57

    I find commandlinefu.com to be an excellent resource for various shell scripting recipes.

    Examples

    Common

    # Run the last command as root
    sudo !!
    
    # Rapidly invoke an editor to write a long, complex, or tricky command
    ctrl-x ctrl-e
    
    # Execute a command at a given time
    echo "ls -l" | at midnight
    

    Esoteric

    # output your microphone to a remote computer's speaker
    dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp
    

提交回复
热议问题