Linux

5 Common Linux Commands Everybody Gets Wrong



Dr. Johns discusses 5 common Linux commands everybody gets wrong. This is the next video in our series. 1st Video: …

[ad_2]

source

Related Articles

9 Comments

  1. At least in bash and similar shells, your find command will not work properly. bash will expand glob characters in double quotes, it will not expand glob characters in single quotes. So you if you use glob characters in your pattern, you must use single quotes around them (or precede stars with backslashes).

  2. I do welcome the "rsync src/ dst" syntax and find it very useful, as it is on par with how "cp" works, and especially because in bash, it's typically nontrivial how to select all files, including hidden ones.

  3. nice explanation and thanks for info… One critic, please make your commands bit larger and middle of the screen so low resolution windows can see. keep up the good work.. <3

  4. I started with Linux back in 1996 and UNIX sysadmin stuff about 8 years before that and I can't fault the 5 mistakes you've picked up, I've done them all in the past – and still have to really think about parameters to rsync and forward slashes.

    For the find command, you can use quotes but you can do it in one character by escaping the wild card – "find . -name *.txt also works fine.

    If I am teaching Linux to others, I try to get them to understand "escaping" first before moving on to quotes, because you will also be aware that there are times you use single quotes that work differently to use double quotes – and then, of course, there's the back quotes as a method to grab the output of a command, rather than running the command itself.

    But a very good and helpful video.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button