Please enable JavaScript.
Coggle requires JavaScript to display documents.
CS50: Week 1 (Command Line in C (Removing a file (rm hi.txt (hi.txt is the…
CS50: Week 1
Command Line in C
/n
has the effect of moving the cursor to the next line after executing the code. It's like hitting ENTER on the keyboard
-
-
-
-
-
-
Removing a file
-
rm -f hi.txt
this command will remove the file, hi.txt, without giving a "are you sure?" prompt. the -f forces the computer to do what I say
-
Renaming a file
mv greddy.c greedy.c
this allows me to change the name of, greddy.c, to greedy.c
-
what is a compiler?
-
-
-
compiling process
1) pre-processing
any line of code that starts with a hashtag is a pre-processor directive. which means, please do something with this file before compiling my own code
-
-
-