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

Removing

After copying some files and directories into our home directory (which is a safe bet, because we know for sure that we can write there!), we're left with a little mess. Instead of only creating files, let's use the rm command to remove some duplicate items:

reader@ubuntu:~$ ls -ltotal 556-rw-r--r-- 1 reader reader 550975 Aug 18 14:20 dpkg.log-rw-rw-r-- 1 reader reader     69 Jul 14 13:18 nanofile.txtdrwxrwxr-x 2 reader reader   4096 Aug  4 16:16 testdir-rwxr-xr-- 1 reader reader      0 Aug  4 13:44 testfile-rwxr-xr-- 1 reader reader      0 Aug 18 14:00 testfilecopydrwxrwxr-t 9 reader reader   4096 Aug 18 14:38 tmpdrwxrwx--- 2 reader reader   4096 Aug  4 16:18 umaskdir-rw-rw---- 1 reader games       0 Aug  4 16:18 umaskfilereader@ubuntu:~$ rm testfilecopyreader@ubuntu:~$ ...
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