Question

• List all the directories using echo command only

• List all the files within a directory including hidden files • Display a Calendar for a specific month and year

• What will be the output of the following: who| more who –a cat file name | more ℓs- ℓ > temp

• What options can be used with a grep command? Show output with each option

15 Sep 2022
Answer :
Word Count : 593

echo $(ls -d */)

This command uses the ls command with the -d option to list only directories and the */ pattern to select only directories. The echo command then outputs the result.

  1. List all the files within a directory including hidden files: To list all the files within a directory, including hidden files, you can use the following command:

ls -a

The -a option shows all files, including hidden files, in the specified directory.

  1. Display a Calendar for a specific month and year: To display a calendar for a specific month and year, you can use the cal command with the -m and -y options to specify the month and year, respectively. For example, to display the calendar for February 2023, you can use the following command:

cal -m 2 -y 2023

__________ ___ ______ _____ ______ _____ ______.
________ _______ ____ _____ ________ ___ ______.
___ _________ ________ ___ ______ ________ _____ __________ _________.
________ ___ __________ ________ _______ _________ ___ _______ ____ ___.
____ ____ ____ _____ _____ ________ ____.
_________ _____ ___ _____ _______.
________ ___ ___ ___ __________ _____ _______ _____ __________ _______ ____ __________.
___ _____ _______ _________ _______ __________.
________ ________ __________ __________ __________ _________ __________.
_________ __________ ______ ______ ___ __________ ___ ________ ___ _______.
_________ ____ ______ ________ _________ ____ _________ ________ _____.
___ ________ _______ ___ _________ _____ _________ ______ _________ _______ _________ _____.
______ __________ ____ ________ __________ _____.
__________ ______ ____ ____ _____ ____ ________ ___.
________ ____ _______ __________ ______ _____ _______ _____ _________ __________ __________ __________.
___ ____ ________ __________ _________ _______ _________ ___ _____ _____ __________ _______.
____ _________ _________ _______ ____ ________ _________ ____ _______ ____ ___ __________.
_________ _______ __________ ____ _________ _______.
____ __________ _______ __________ _________ ______ __________ ____ _________ ___.
_____ _______ _________ _________ ____ ________ _____ ________ ___.
______ _____ ___ ______ __________ _____ ________ _________ ________ _______.
________ _________ ______ ____ _______.
_____ ________ ___ ______ ____.
___ _______ ___ ______ ____.
_________ __________ __________ _______ ________.
_______ __________ _________ ______ ______ __________ ________.
____ __________ ________ _________ ________.
_____ _________ __________ ________ ____ ________ ____.
_______ _____ ___ _______ __________ ______ _________.
________ ________ ____ _______ ____ ________ __________ ________ ______.
_________ __________ ______ ___ ______ __________.
______ _________ ___ ______ _____ ____.
__________ ________ ________ ______ ___ _______ _________.
_______ ____ ______ ______ _________ ___ ______.
__________ __________ _____ ___ _______ _______ _________ _______ __________ ____ ___ _________.
___ _______ ______ ____ ________ ___ __________ ___ __________.
_________ ________ ____ _____ _______ ____ ____ ________ ___ ___.
___ _____ _______ _______ ____ ____ ______.
________ _________ ____ _________ ______ ________ _______.
__________ ________ _____ ____ ________ _______ ________ ______ ___ _________ _________ ________.
______ ______ _____ ___ __________ ______.
_______ ______ __________ ___ ___ _____ __________ ___ ___ _______ ___.
________ ____ _______ ____ __________ ______ ______ __________ ______ _________ ____ ___.
________ ______ ________ _____ _____ ____ ____ ______ ___ ______ ________ ______.
_____ ______ ________ _______ __________ _______ _______ __________ _____ _______ _____.
_____ _____ ________ _____ __________ ____ ____ _________ _________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 22 2022 2023 - Answer the following questions related to Linux commands:• Li | IGNOU Academy
→
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→