Skip to content

Linux Assignment 1

Sayan Bhattacharya edited this page Nov 7, 2025 · 2 revisions

1. Which command will display your current working directory?

image

2. List all files and directories, including hidden ones, in your current directory in a detailed format.

image

3. Create a directory named project_files inside your Home directory.

image

4. Change your current working directory to /etc and verify it.

image

5. Create three empty files named report1.txt, report2.txt, and report3.txt in the

project_files directory. image

image

6. Use the cat command to create a new file named notes.txt and add some text content to it.

image

7. Display the calendar for the year 2026.

image

8. Display the calendar for the month of October 2025.

image

9. Show the current date and time in your terminal.

image

10. Find out the username of the currently logged-in user.

image

11. Create a nested directory structure home location/training/linux/commands in a single command.

image

12. Create a file calendar inside commands location, which should contain calendar of 2030

Screenshot 2025-11-07 183851 image

13. List all files in the /var/log directory that start with the letter “s”.

no idea

14. Display files in reverse order sorted by modification time.

image

15. 15. Display the content of calendar file on the screen.

Screenshot 2025-11-07 183911

Clone this wiki locally