1/20
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
ls
List files in the current directory
ls -l
Extended info for files in current directory
cp <file1.type> <file2.type>
Create a copy of file1 called file2
rm <file1.type>
Delete file1
man <command>
Gives more information about the commanad
pwd
Print working directory
cd . .
Go up a folder
cd
Go into the default directory
mkdir <folderName>
Make folder called folderName
rmdir <folderName>
Delete folder folderName
-o fileName.out
Instead of a.out creates executable called fileName.out
-std=c++11
Compiles to c++11 standard
target: dependencies
action
Format for makefiles
makefile dependency
List of files used in the linux command of action
makefile action
linux command to compile or link the dependent files
-c <fileName.cpp>
Just compiles the given file without any linking
*
wildcard for any number of characters
make <target>
linux command to specify the target to run first, if target is empty then the first one is run
$<
Wildcard for leftmost dependency
$^
Wildcard for all dependencies
$@
Wildcard for target