cli prompts

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 28

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

29 Terms

1

cd

change directory

New cards
2

pwd

print working director

New cards
3

ls

lists the files in current directory

New cards
4

ls -a

lists all files including hidden files in current directory

New cards
5

ls subdir/

lists content within a subdirectory

New cards
6

cd ..

moves one directory up

New cards
7

clear

clears terminal workspace

New cards
8

less file.txt

used to print the text of a file one screen at a time

New cards
9

cat file.txt

displays contents onto terminal window

New cards
10

grep “word” file.txt

used to find a word in a file (case-sensitive)

New cards
11

grep -i “word” file.txt

used to find a word in a file (non-case sensitive)

New cards
12

grep “word” *.txt

searches for word in all files in working directory

New cards
13

mkdir

creates a new directory

New cards
14

rm file.txt

removes a file

New cards
15

rm -r directory_name

removes the entire directory

New cards
16

mv old_name.txt. new_name.txt

renames a file

New cards
17

mv file.txt thisdir

moves the file to a directory

New cards
18

cp file.txt copy.txt

copies one file to the next

New cards
19

cp -r og_dir copy_dir

recursively copies a directory into the destination directory

New cards
20

cp -r og_dir* copy_dir

recursively copies the contents of a directory into the destination directory

New cards
21

find .

recursively prints all files and directories in the current directory

New cards
22

find . -name “*.txt”

finds a specific type of file in a directory

New cards
23

find / -name “file.txt”

finds the specific file starting from the root directory

New cards
24

exit

closes session

New cards
25

rm -i —recursive dir_name

deleting non-empty directories safely

New cards
26

..

parent directory

New cards
27

.

refers to self directory

New cards
28

absolute path

starts with / to reference root directory

New cards
29

cd

shortcut to change to home directory

New cards

Explore top notes

note Note
studied byStudied by 9 people
354 days ago
5.0(1)
note Note
studied byStudied by 22 people
695 days ago
5.0(1)
note Note
studied byStudied by 13 people
956 days ago
5.0(1)
note Note
studied byStudied by 721 people
321 days ago
4.5(2)
note Note
studied byStudied by 11 people
868 days ago
5.0(1)
note Note
studied byStudied by 42 people
868 days ago
5.0(2)
note Note
studied byStudied by 94 people
807 days ago
5.0(1)
note Note
studied byStudied by 221 people
342 days ago
5.0(3)

Explore top flashcards

flashcards Flashcard (22)
studied byStudied by 32 people
518 days ago
5.0(1)
flashcards Flashcard (81)
studied byStudied by 13 people
43 days ago
5.0(1)
flashcards Flashcard (110)
studied byStudied by 37 people
427 days ago
5.0(3)
flashcards Flashcard (97)
studied byStudied by 14 people
820 days ago
5.0(1)
flashcards Flashcard (53)
studied byStudied by 4 people
680 days ago
5.0(1)
flashcards Flashcard (542)
studied byStudied by 32 people
854 days ago
5.0(1)
flashcards Flashcard (78)
studied byStudied by 35 people
462 days ago
5.0(1)
flashcards Flashcard (29)
studied byStudied by 12 people
20 hours ago
4.0(1)
robot