Linux and Makefile Syntax

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

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 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

*

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