Advertisement
Guest User

Untitled

a guest
Jan 14th, 2011
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. 1. Create a tree structure named ‘training’ in which there are 3 subdirectories – ‘level
  2. 1’,’ level2’ and ‘cep’. Each one is again further divided into 3. The ‘level 1’ is divided
  3. into ‘sdp’, ‘re’ and ‘se’. From the subdirectory ‘se’ how can one reach the home
  4. directory in one step and also how to navigate to the subdirectory ‘sdp’ in one step?
  5. Give the commands, which do the above actions?
  6.  
  7. 2. How will you copy a directory structure dir1 to dir2 ? (with all the subdirectories)
  8.  
  9. 3. How can you find out if you have the permission to send a message?
  10.  
  11. 4. Find the space occupied ( in Bytes) by the /home directory including all its
  12. subdirectories.
  13.  
  14. 5. What is the command for printing the current time in 24-hour format?
  15.  
  16. 6. What is the command for printing the year, month, and date with a horizontal tab
  17. between the fields?
  18.  
  19. 7. Create the following files: chapa, chapb, chapc, chapd, chape, chapA, chapB,
  20. chapC, chapD, chapE, chap01, chap02, chap03, chap04, chap05, chap11, chap12,
  21. chap13, chap14, and chap15.
  22.  
  23. 8. With reference to question 7, What is the command for listing all files ending in
  24. small letters?
  25.  
  26. 9. With reference to question 7, What is the command for listing all files ending in
  27. capitals?
  28.  
  29. 10. With reference to question 7, What is the command for listing all files whose last
  30. but one character is 0?
  31.  
  32. 11. With reference to question 7, What is the command for listing all files which end
  33. in small letters but not ‘a’ and ‘c’?
  34.  
  35. 12. In an organisation one wants to know how many programmers are there. The
  36. employee data is stored in a file called ‘personnel’ with one record per employee.
  37. Every record has field for designation. How can grep be used for this purpose?
  38.  
  39. 13. In the organisation mentioned in question 12 how can sed be used to print only
  40. the records of all employees who are programmers.
  41.  
  42. 14. In the organisation mentioned in question 12 how can sed be used to change the
  43. designation ‘programmer’ to ‘software professional’ every where in the ‘personnel’
  44. file
  45.  
  46. 15. Find out about the sleep command and start five jobs in the background, each
  47. one sleeping for 10 minutes.
  48.  
  49. 16. How do you get the status of all the processes running on the system? i.e. using
  50. what option?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement