0
Alien head

Basic File operation Unix Quiz

Description: Basic File operation Unix Quiz
Number of Questions: 5
Created by:
Tags: unix

What command will give you a long listing of a directory AND include hidden files?

  1. ls -la

  2. ls -a

  3. ls -xv

  4. rm -rf *

Answer: 2

How do you move up level folder level?

  1. cd .

  2. cd ..

  3. cd ~

  4. cd

Answer: 2

How do you delete a file?

  1. mv filename

  2. cp filename

  3. rm filename

  4. rm -rf *

Answer: 3

How do you delete a directory?

  1. rm directory

  2. mv directory

  3. cd directory

  4. rmdir directory

Answer: 4

How do you rename a file?

  1. mv oldfilename newfilename

  2. touch oldfilename newfilename

  3. cp oldfilename newfilename

  4. rm -rf *

Answer: 1
+ View questions