Getting to Know the Command Line (Mac OS)

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

https://davidbaumgold.com/tutorials/command-line/

Last updated 3:41 PM on 9/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

The three standard components that make up command line syntax

Utility, flags, and arguments

2
New cards

Command used to view the manual documentation for a specified utility

man $UTIL

3
New cards

Command used to list the contents of a directory

ls $DIR

4
New cards

Command used to change the current working directory

cd $DIR

5
New cards

Command used to print the path of the current working directory

pwd

6
New cards

Command used to display and scroll through the contents of a file

less $FILE

7
New cards

Command used to copy a file from one location to another

cp $FILE $LOCATION

8
New cards

Command used to move a file to a new location

mv $FILE $LOCATION

9
New cards

Command used to permanently delete a file

rm $FILE

10
New cards

Command used to execute a command with elevated super user permissions

sudo $CMD

11
New cards

Command shortcut to navigate directly back to the home directory

cd ~

12
New cards

Command shortcut to move up one level to the parent directory

cd ..

13
New cards

Command option to list directory contents in long format with detailed information

ls -l

14
New cards

Command option to classify items by appending indicators (such as slashes for folders)

ls -F

15
New cards

Command option to display all items in a directory including hidden links

ls -a

16
New cards

Dangerous command that attempts to recursively delete every file on the system starting from root

sudo rm -rf /

17
New cards

Piece of code known as a fork bomb that recursively multiplies to exhaust system resources

:(){ :|:& };: