Shell/Console/Terminal Flashcards Preview

Intermediate Programming > Shell/Console/Terminal > Flashcards

Flashcards in Shell/Console/Terminal Deck (20)
Loading flashcards...
1

a directory is the same as a

file

2

what is the term for the current directory you are in

working directory

3

what is the difference between a relative and an absolute path

an absolute path name begins with a slash and works it way down to the directory you are currently in

a relative path name is the name from where you are working

4

what command will tell you what directory you are in

pwd

5

what command will tell you the file names and directories of the directory that you're in

ls (list)

6

what command will tell you the file names and directories of a named directory

ls DirName

7

what command changes the working directory to the home directory

cd (change directory)

8

what command changes the working directory to be a named directory

cd DirName

9

what command changes the working directory to be one directory up

cd ..

10

what command allows you to create a directory

mkdir DirName

11

what command allows you to delete a directory

rmdir DirName

12

what conditions are needed in order to delete a directory

it must be empty first

13

what command allows you to remove a file

rm fileName

14

what command allows you to move files or directories

mv fileToBeMoved LocationToMoveTo

15

what command allows you to rename files or directories

mv OldName NewName

16

what command allows you to make copies of files

cp fileName1 copyFile

17

what command allows you to make copies of directories and all the files inside of them

cp -r directoryName copyDirectoryName

18

what symbol can be used as an abbreviation for the home directory

~

19

command to create a file called 'cars' and fill it with 'ford opel'

echo 'ford opel' > cars

20

command to show what is inside the file 'cars'

more cars