Write the LINUX commands for the following:
a. Set the permissions of exam.txt so that only the owner can read and write, and others have no access
Display the current permissions of exam.txt using ls -1.
c. Change the owner of exam. Ixt to another user using chown (if allowed).
d. Grant read permission to a specific user using setfacl.
e. Use the we command to count the number of lines, words, and characters in exam.IXI.
f. Find all occurrences of a specific word (eg., "Linux") in exam Ixt using grep.
g. Sort the lines of a file named data txt alphabetically using sort.
h. Remove duplicate lines from data.txt using uniq.
i. Redirect the output of the Is command into a file named output.txt.
j. Check the connectivity to a specific website (eg, google.com) using ping.
a. Set the permissions of `exam.txt` so that only the owner can read and write, and others have no access:
```bash
chmod 600 exam.txt
```
b. Display the current permissions of `exam.txt` using `ls -l`:
```bash
ls -l exam.txt
```
c. Change the owner of `exam.txt` to another user (if allowed):
```bash
sudo chown newuser exam.txt
```
d. Grant read permission to
___ __________ ________ ___ ______ ______ _______.
______ ____ ______ __________ ______ ______ ________ ________ ________ __________.
________ ____ ________ ___ ______ _______ _________ ____ __________ ____ _________.
________ _____ ______ _________ _____.
___ ___ _____ ______ __________.
________ ___ __________ ___ _____ _________ ____ ________ ______ ____ ______.
_________ ____ _______ ____ _________ _______.
________ ______ ________ ______ ___ ________ _________ _____.
__________ ___ ____ __________ ______ ______ _____ _________ ________ ________ _________ _____.
__________ _______ _______ ____ ______ _________.
_________ ______ __________ ___ _____ _________ ______ _______.
________ _____ ________ __________ ____ ________ _________ _________ ___.
__________ _____ ________ _____ _______ ____ __________ _______.
_______ ____ ___ _______ _________ _____ _____ _________ ______ ______.
_______ _________ ________ ____ _________ _____ _______ __________ ______ ______.
_________ ______ __________ _________ ______ ___ _____ ____ ______.
___ ____ __________ _____ ___ ____ _______ ____ _________ ___ _______ _______.
__________ ____ ______ ______ _______ _____ _____ __________ ______.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required