Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

coders   JavaScript worlds

Search:

Free AI exercises


Linux Quiz A



  

cd

  1. The commands "cd" followed by "cd public_html" followed by "mkdir ../stuff" are run, what happens?
  2. The commands "cd $HOME" followed by "mkdir stuff" are run, what happens?
  3. The commands "cd $HOME/public_html" followed by "mkdir stuff" are run, what happens?
  4. The commands "cd /public_html" followed by "mkdir stuff" are run, what happens?

redirection

  1. Do you see any difference between outputting "ls" to screen and outputting it to a file?
  2. Typing "cd" followed by "ls > public_html/file.txt" does what?
  3. Typing "cd $HOME/public_html" followed by "ls > public_html/file.txt" does what?
  4. Typing "cd $HOME/public_html" followed by "ls > ../public_html/file.txt" does what?

utils

  1. What does the command "find . -type f" do?
  2. What does the command "find . -type d" do?
  3. Use "tr" to show the directories in the variable $PATH separated by spaces rather than by colons.

misc

  1. The hidden .* files are what?
  


If you submit by mistake or make an error, just press "Back" and submit again.