Linux and Makefile Syntax

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

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:01 PM on 10/9/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

ls

List files in the current directory

2
New cards

ls -l

Extended info for files in current directory

3
New cards

cp <file1.type> <file2.type>

Create a copy of file1 called file2

4
New cards

rm <file1.type>

Delete file1

5
New cards

man <command>

Gives more information about the commanad

6
New cards

pwd

Print working directory

7
New cards

cd . .

Go up a folder

8
New cards

cd

Go into the default directory

9
New cards

mkdir <folderName>

Make folder called folderName

10
New cards

rmdir <folderName>

Delete folder folderName

11
New cards

-o fileName.out

Instead of a.out creates executable called fileName.out

12
New cards

-std=c++11

Compiles to c++11 standard

13
New cards

target: dependencies

action

Format for makefiles

14
New cards

makefile dependency

List of files used in the linux command of action

15
New cards

makefile action

linux command to compile or link the dependent files

16
New cards

-c <fileName.cpp>

Just compiles the given file without any linking

17
New cards

*

linux wildcard for any number of characters

18
New cards

make <target>

linux command to specify the target to run first, if target is empty then the first one is run

19
New cards

$<

Wildcard for leftmost dependency

20
New cards

$^

Wildcard for all dependencies

21
New cards

$@

Wildcard for target

22
New cards

%

Makefile wildcard for any number of characters

23
New cards

$ (<varName>)

Makefile variable

Explore top notes

note
Week 4 Readings
Updated 1160d ago
0.0(0)
note
Cells
Updated 1199d ago
0.0(0)
note
ap bio unit 4
Updated 487d ago
0.0(0)
note
Chapter 21: Getting a Job
Updated 1335d ago
0.0(0)
note
Heimler APUSH TP 5.3
Updated 460d ago
0.0(0)
note
Week 4 Readings
Updated 1160d ago
0.0(0)
note
Cells
Updated 1199d ago
0.0(0)
note
ap bio unit 4
Updated 487d ago
0.0(0)
note
Chapter 21: Getting a Job
Updated 1335d ago
0.0(0)
note
Heimler APUSH TP 5.3
Updated 460d ago
0.0(0)

Explore top flashcards

flashcards
Biological diversity
47
Updated 280d ago
0.0(0)
flashcards
B1 - LESSONS 1, 2, 3
43
Updated 425d ago
0.0(0)
flashcards
Math vocab Chapter 5
27
Updated 802d ago
0.0(0)
flashcards
Unit 3Review Midterm
50
Updated 1153d ago
0.0(0)
flashcards
3.1: Sources of finance
37
Updated 1251d ago
0.0(0)
flashcards
Scientific Method
20
Updated 199d ago
0.0(0)
flashcards
Biological diversity
47
Updated 280d ago
0.0(0)
flashcards
B1 - LESSONS 1, 2, 3
43
Updated 425d ago
0.0(0)
flashcards
Math vocab Chapter 5
27
Updated 802d ago
0.0(0)
flashcards
Unit 3Review Midterm
50
Updated 1153d ago
0.0(0)
flashcards
3.1: Sources of finance
37
Updated 1251d ago
0.0(0)
flashcards
Scientific Method
20
Updated 199d ago
0.0(0)