–> Further Exercises
Up to this point, we have used commands without arguments and commands with arguments. In addition to this, we can execute commands with options. Options are bells and whistles we can append to our commands to customize the way the shell interprets the commands.
Here are a few options for the command
ls courtesy of The Linux Command Line :
Options are added after the command itself but before any arguments.
command [options] [arguments]
command [options] <arguments>
 – optional. The command will work with or without these
<> – required. The command requires these arguments
Short options take one dash. Long options take two dashes
Further, short options can often be lumped together.
For example, the following commands do the same thing…
$ls -a $ls --all
And these commands do the same thing…
$ls --all --human-readable -l $ls -a -h -l $ls -ahl
Exercise: Let's obtain a dataset to allow us to explore
ls) to the directory
Exercise: Try executing
ls --alldo the same thing.
lsoptions would you execute to list the contents in the following order and format:
total 184 -rw-r--r--@ 1 erinonish staff 99B Aug 24 19:38 ce11_chrom_sizes.txt -rw-r--r--@ 1 erinonish staff 800B Aug 24 19:51 README_download.txt -rw-r--r--@ 1 erinonish staff 1.4K Aug 24 19:39 mm10_chrom_sizes.txt -rw-r--r--@ 1 erinonish staff 11K Aug 24 19:41 hg38_chrom_sizes.txt -rw-r--r--@ 1 erinonish staff 23K Aug 24 19:42 danRer10_chrom_sizes.txt -rw-r--r--@ 1 erinonish staff 44K Aug 24 19:37 dm6_chrom_sizes.txt