Unix Assignment Questions
Unix Assignment Questions
06. Write command to list all the files and directory in your home directory ?
07. What commands are used to create a read-only file in your home directory?
08. How will you find which operating system your system is running on in UNIX?
12. How do you check how much space you have on all the file systems ?
14. What is difference between Hard Link and Soft Link in UNIX?
15. What is "chmod" command? What do you understand by the line “r-- -w- --x?
16. In a file word UNIX is appearing many times? How will you count number?
18. How do you find which processes are using a particular file?
19. You have a tab separated file which contains Name, Address and Phone
Number, list down all Phone Number without their name and Addresses?
20. Your home directory is full ? How will you find which directory is taking how
much space?
21. How do you find for how many days your Server is up?
22. You have an IP address in your network how will you find hostname and vice
versa?
25. How do you find which remote hosts are connecting to your host on a particular
port say 10123 ?
29. Which command displays the locations or the current working directory ?
30. What are the permissions that each file or directory have ?
31. Which command can be used to change the permissions of a file or directory
recursively ?
35. What is the name of the program used to edit files in Unix ?
39. How do you list all the files in a directory that end with characters `.java’ ?
40. How to create a file named `test4’ having contents of 3 other files namely
`test1’, `test2’ and `test3’ ?
41. How can we check the difference between two files ?
42. How do you copy a file interactively, from one directory to another directory
which is one level higher than the current directory ?
43. How do you change from your present directory, to two levels higher than your
current directory ?
44. What structure is used by Unix Operating System to store files & directories ?
45. What command is used to display the users currently logged on the system ?
49. How do you switch to a different user with his own environment ?
50. Which user has all the supreme power in a Unix Operating System ?