Reference no: EM133399115
Assignment:
Please provide the commands on how to solve these questions. (Linux commands only please)
1. Create 1 empty file in your home directory named "myEmptyFile". Show a long listing of the non-hidden files/directories in your home directory.
2. Hide the file you created in Q1. Show a long listing of the non-hidden files/directories in your home directory. Show a long listing of all the files/directories in your home directory.
Note the entry of the hidden file you created.
3. Hard link the hidden file you have in Q2 to a file named "MyVisibleFile" in a new directory named "assignment-2". Show a long listing of the non-hidden files/directories in your assignment-2 directory. Note the difference between this listing and the listing of Q1 in regards to the linked files.
4. Find the device file for the /var file system, then find out whether it is of a block or character type and its both major & minor numbers.
5. Find a device connected to the system that uses a character device file.
6. What is the file system type of the /tmp file system? Show its current mounting options and explain their meaning.
7. Find the available disk space in the /opt file system in GigaBytes.
8. Which file is used to mount file systems at boot time? Show the contents of that file. Explain the fields for the /var/log file system.
9. You are going to umount the /home file system for maintenance, but before you do that you need to find out the users who are currently using that file system to alert them.
Show a list of the users who may be using that file system.
10. Display the memory block size and the total memory on the server.
11. Display the currently allocated swap space, how much of it is in use and its device file location.
12. Find the name of the cdrom device driver (i.e. module).