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
  __________ __________ ___ _________ _______ ___ ________ ___.
____ ______ _________ _________ ________ ________ __________ _____ ______ ________ _________.
__________ ___ _______ _____ ___ ________ ______ ___ _______ ______ _________ _________.
_________ ______ ______ _________ __________ _______ _____ ________ _________ _____ _________.
________ _______ _________ ______ ______ _________ ______ ____ ___ _______.
_______ ___ ____ _____ _______.
______ __________ ___ _________ _____ ________ _____ _______ ________ ______ ____ _________.
___ ______ ________ _________ ___ ________ ____ ___.
___ ______ _____ _________ ____ _________ ________ _____ ____.
________ _____ ______ _________ ___.
____ ____ _________ _________ ___ _______.
_________ __________ _______ __________ _____.
____ _____ _______ _________ _______ _____ ________ ______.
_______ ___ __________ _________ ____ _____ ___ ____ ____ ___ ______ ____.
____ __________ _________ ________ ___.
_________ _________ ______ ________ _____ _______ ____ _________ _________ ________.
_______ ____ _____ _____ _________.
__________ _____ ___ ______ _____.
_____ _______ __________ _______ _____ ___.
___ ______ ________ _________ ___.
________ ____ __________ __________ ___ _____ __________ _____.
_______ ____ ________ ___ ______.
__________ __________ _____ _______ ___ ____ _______ _____ ____ _________ _______.
__________ __________ ________ __________ ________ ____ ________ _________ _________ __________.
____ _________ _____ ______.
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
→