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 another user (if allowed):  
   ```bash
   sudo chown newuser exam.txt
   ```

d. Grant read permission to

__________ _______ ___ _________ _____.
___ __________ ________ ___ ______ ______ _______.
______ ____ ______ __________ ______ ______ ________ ________ ________ __________.
________ ____ ________ ___ ______ _______ _________ ____ __________ ____ _________.
________ _____ ______ _________ _____.
___ ___ _____ ______ __________.
________ ___ __________ ___ _____ _________ ____ ________ ______ ____ ______.
_________ ____ _______ ____ _________ _______.
________ ______ ________ ______ ___ ________ _________ _____.
__________ ___ ____ __________ ______ ______ _____ _________ ________ ________ _________ _____.
__________ _______ _______ ____ ______ _________.
_________ ______ __________ ___ _____ _________ ______ _______.
________ _____ ________ __________ ____ ________ _________ _________ ___.
__________ _____ ________ _____ _______ ____ __________ _______.
_______ ____ ___ _______ _________ _____ _____ _________ ______ ______.
_______ _________ ________ ____ _________ _____ _______ __________ ______ ______.
_________ ______ __________ _________ ______ ___ _____ ____ ______.
___ ____ __________ _____ ___ ____ _______ ____ _________ ___ _______ _______.
__________ ____ ______ ______ _______ _____ _____ __________ ______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCSL 204 2024 2025 - Write the LINUX commands for the following:a. Set the permissions | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→