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

后端 未结 25 1473
遇见更好的自我
遇见更好的自我 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:45

    If you make a typo in a long command, you can rerun the command with a substitution (in bash):

    mkdir ~/aewseomeDirectory
    

    you can see that "awesome" is mispelled, you can type the following to re run the command with the typo corrected

    ^aew^awe
    

    it then outputs what it substituted (mkdir ~/aweseomeDirectory) and runs the command. (don't forget to undo the damage you did with the incorrect command!)

提交回复
热议问题