Memory Exercise 1: Paths, basic commands

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/34

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key terms and commands from Memory Exercise 1: Paths, basic commands.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

35 Terms

1
New cards

Pathname

A route through the Unix file system tree to a directory or file.

2
New cards

Absolute pathname

Starts at the root directory.

3
New cards

Root directory

The starting point of the file system; symbol is /.

4
New cards

Slash

The symbol that represents the root directory in Unix.

5
New cards

Absolute path names start with

A forward slash (/) indicates an absolute path.

6
New cards

Relative path names start at

The working directory (current directory).

7
New cards

Working directory

The directory you are currently in.

8
New cards

Relative pathname

A path that does not start with /; it is relative to the current working directory.

9
New cards

Absolute path to Joe's music directory

/home/joe/music

10
New cards

The absolute path example

/home/joe/music (example value of an absolute path).

11
New cards

The relative path to Joe's music directory

music.

12
New cards

The relative path example

music (as a path from Joe's home directory).

13
New cards

Hidden files start with

A dot (.) at the start of the filename.

14
New cards

ls

List directory contents; by default, shows file names only.

15
New cards

ls -l

List directory contents in long format with permissions, size, timestamps, etc.

16
New cards

ls -A

List directory contents including hidden files.

17
New cards

touch file1

Create a new empty file named file1.

18
New cards

touch existing_file

Update the timestamp on an existing file named existing_file.

19
New cards

vi (vim) file1

Edit file1; creates it if it does not exist.

20
New cards

cat file1

Display the contents of file1 as a text stream.

21
New cards

cat file1 file2

Display the contents of file1 and file2 (concatenate and show).

22
New cards

more file1

Display file1 one page at a time (older pager).

23
New cards

less file1

Display file1 one page at a time (modern pager).

24
New cards

head file1

Show the first 10 lines of file1.

25
New cards

tail file1

Show the last 10 lines of file1.

26
New cards

pwd

Print the current working directory.

27
New cards

mkdir new_dir

Create a directory named new_dir.

28
New cards

cd new_dir

Change the working directory to new_dir.

29
New cards

rmdir empty_dir

Remove an empty directory named empty_dir.

30
New cards

rm -ri full_dir

Remove a directory that has files in it, with interactive prompts.

31
New cards

cp file1 file2

Copy file1 to file2.

32
New cards

mv file3 new_name

Rename file3 to new_name.

33
New cards

mv file4 diff_dir

Move file4 from the current directory to the directory named diff_dir.

34
New cards

rm file5

Delete file5.

35
New cards

man command

Look up the online manual page for a command.