Question

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.

12 Feb 2025
Answer :
Word Count : 244

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 _________ ____ _____ ________ _______ __________ ________.
_________ ___ _________ __________ __________ ______ __________ _______.
_______ ______ _________ _______ _______ ______ ______ _____.
_____ __________ ______ ______ ______ _____ __________ __________ __________.
__________ _________ _____ __________ _____ ____ _____ __________ __________ ______.
_______ ___ ______ __________ ______ ________ _____ _________ ________ _____.
____ ______ ____ ______ _____ ___.
_________ ________ ____ ______ ______.
____ ____ _________ _________ ___.
_______ ________ __________ _____ ______ ____ _____.
_____ ____ _________ ___ __________ ____ ______ __________ _________.
_______ ___ ___ _____ _________ _______.
__________ ____ ______ ____ ______ ________ ________ ____ ____.
_____ ____ ___ ________ ______ ______ _________.
____ ________ ______ ______ _______ ________ _____ _______ _____.
________ ________ ______ ______ ___.
___ __________ ____ __________ ______ _____ ____ ____ ____.
_______ _________ ___ __________ _____ ___ _______.
_______ _____ _____ ________ ____ ____ _________ _________ __________ _____.
_________ _______ ____ ______ ______.
___ ____ ______ _____ _______ ______ ______ ______ ______ _____.
____ _________ _________ ______ ________.
________ __________ ___ _________ _________ ______ _____ _____ _________.
___ _____ __________ _____ __________ _____ ___ _______.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write the LINUX commands for the following:a. Set the permissions
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support