Questions 0

  1. How do you search your man-pages for a given keyword?
    Hint: man man|grep -A1 -B1 -m1 keyword
  2. Suppose you need to type the command basename. Which characters do you need to type in your system before bash completion can complete your typing?
  3. In many systems bash completion can also complete long options to many POSIX utilities. Does your bash completes long options? Suppose you need to type the command mkdir --parents. Which characters do you need to actually type when using bash completion?
  4. How do you create a folder with a subfolder (say prog/hello)? Hint: man mkdir | grep -B1 "make parent".
  5. Which option instructs the rm command to ask the user for a confirmation before every removal? Hint: man rm|grep "prompt before".
  6. Which option instructs the rm command to remove a folder with all subfolders? Hint: man rm|grep -B1 "remove directories".
  7. Which unix command lists the files in a directory in one column sorted by modification time with the newest last?
  8. What do symbols ., .., ~ mean in the context of the unix file utilities?
  9. Where will the command cd without any arguments lead you?
  10. What is your home directory? Name also alternative notations.