In: Computer Science
Objective:
Practice common UNIX commands.
Procedure:
Commands:
chmod u+x Dir1.0 adds execute permission for the owner
chmod go-w file1 removes write permission for the group and others
chmod ugo=rw testfile sets the permissions for everyone to read and write, but not execute
chmod u=rwx newDir sets the permissions for the owner to read, write, and execute
Answer 1
************
df - report file system disk space usage
Answer 2
***********
du - estimate file space usage
Answer 3
**************
Gzip reduces the size of the named files using Lempel-Ziv coding
gzip [file-name]
Answer 4
*************9
Answer 5
*************
display typed command history on the terminal
Answer 6
****************
wget is used to download the file from the URL
Answer A
**************
ls -l <filename> or <directory name> will show the rights given to the user.
Answer B
***************
Root is the owner of passwd file
Group has only read rights on the passwd file.
Thanks