Linux Terminal Tools [pdf]
ketancmaheshwari.github.io
Linux Terminal Tools [pdf]
1–10 of 57 posts
Re: Linux Terminal Tools [pdf]
#2Table of Contents (for those who hate PDFs):
Part 1: Overview and Logistics
• Part 2: Basics
• Part 3: Streams, pipe and redirection
• Part 4: Classic Tools: find, grep, awk, sed
• Part 5: Session Management: tmux
• Part 6: ssh: config and tunneling
• Part 7: Secure Communication with GnuPG
• Part 8: Bash Tools
• Part 9: Program Development Tools
• Part 10: Miscellaneous Utilities
• Summary
• Practice and Exercises (if time permits else Offline)
Re: Linux Terminal Tools [pdf]
#3TIL
Re: Linux Terminal Tools [pdf]
#4> use ctrl-y to paste back the deleted TIL
https://unix.stackexchange.com/questions/85390/what-is-meant...
Re: Linux Terminal Tools [pdf]
#5> mcd() { mkdir -p $1; cd $1 }
It should be more like:
> mcd() { mkdir -p "$1"; cd "$1"; }
The trailing ";" is also required in bash for oneline blocks like this.
Same goes for most of the other functions on page 70. "$@", etc.
Just trying to make the learning experience less frustrating, not trying to tear down the effort :)
Re: Linux Terminal Tools [pdf]
#6This function will fail when given an argument with a space, which would be quite frustrating for a beginner, which is presumably the target audience for such a document: > mcd() { mkdir -p $1; cd $1 } It should be more like: > mcd() { mkdir -p "$1"; cd "$1"; } The trailing ";" is also required in bash for oneline blocks like this. Same goes for most of the other functions on page 70. "$@", etc. Just trying to make t…
Re: Linux Terminal Tools [pdf]
#7This function will fail when given an argument with a space, which would be quite frustrating for a beginner, which is presumably the target audience for such a document: > mcd() { mkdir -p $1; cd $1 } It should be more like: > mcd() { mkdir -p "$1"; cd "$1"; } The trailing ";" is also required in bash for oneline blocks like this. Same goes for most of the other functions on page 70. "$@", etc. Just trying to make t…
besides, what kind of savage wants a directory name with spaces?
Re: Linux Terminal Tools [pdf]
#8This function will fail when given an argument with a space, which would be quite frustrating for a beginner, which is presumably the target audience for such a document: > mcd() { mkdir -p $1; cd $1 } It should be more like: > mcd() { mkdir -p "$1"; cd "$1"; } The trailing ";" is also required in bash for oneline blocks like this. Same goes for most of the other functions on page 70. "$@", etc. Just trying to make t…
a beginner would not likely quote the argument, so the point is moot... besides, what kind of savage wants a directory name with spaces?
[raises hand] This type of savage?
Re: Linux Terminal Tools [pdf]
#9This function will fail when given an argument with a space, which would be quite frustrating for a beginner, which is presumably the target audience for such a document: > mcd() { mkdir -p $1; cd $1 } It should be more like: > mcd() { mkdir -p "$1"; cd "$1"; } The trailing ";" is also required in bash for oneline blocks like this. Same goes for most of the other functions on page 70. "$@", etc. Just trying to make t…
a beginner would not likely quote the argument, so the point is moot... besides, what kind of savage wants a directory name with spaces?