Skip to Content
Learn Linux Shell Scripting - Fundamentals of Bash 4.4
book

Learn Linux Shell Scripting - Fundamentals of Bash 4.4

by Sebastiaan Tammer
December 2018
Beginner
452 pages
12h 17m
English
Packt Publishing
Content preview from Learn Linux Shell Scripting - Fundamentals of Bash 4.4

Verbosity of commands

Command verbosity is an interesting one. In the previous chapters you were introduced to a lot of commands, sometimes with accompanying flags and options that alter the functioning of that command. Most options have both a short and long syntax that accomplishes the same thing. The following is an example:

reader@ubuntu:~$ ls -R.:emptyfile  scripts  textfile.txt./scripts:chapter_07./scripts/chapter_07:hello-world-improved.sh  hello-world.shreader@ubuntu:~$ ls --recursive.:emptyfile  scripts  textfile.txt./scripts:chapter_07./scripts/chapter_07:hello-world-improved.sh  hello-world.shreader@ubuntu:~$

We use ls to recursively print the files in our home directory. We first use the shorthand option -R, and right after the long ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Bash Scripting Fundamentals

Bash Scripting Fundamentals

Sander van Vugt

Publisher Resources

ISBN: 9781788995597Supplemental Content