Basic Commands
File Management
Permissions
100

What command is used to view the contents of a directory?

ls

100

What command is used to remove a file?

rm [filename]

100

How do you view the permissions of a file?

ls -l

200

What command do you use to print the current working directory?

pwd

200

How do you move or rename a file?

mv [source] [destination]

200

What command is used to change the permissions of a file?


chmod [permissions] [filename]


300

How do you display the contents of a file in the terminal?

cat [filename]

300

What command copies a file from one location to another?

cp [source] [destination]

300

How do you give execute permission to a file?


chmod x [filename]


400

Which command is used to create a new directory?

mkdir [directory_name]

400

How do you list all files, including hidden ones, in a directory

ls -a


400

How do you change the ownership of a file?



chown [owner] [filename]


500

How do you view the manual page for a specific command?

man [command]

500

What command is used to delete a directory and its contents?

rm -r [directory_name]

500

Which chmod numeric values give you all of the permissions as the owner of that file?

chmod 700

M
e
n
u