Instructions for CS50 IDE: https://docs.cs50.net/2018/x/psets/1/pset1.html
To compile: clang hello.c
after compiling, if there's no error, an output executable file called a.out is automatically formed.
To run the executable file: ./a.out
Here the "./" just means stay in the current folder.
If we make some changes in the original code, we have to compile again, and then run it.
clang hello.c
./a.out
If we don't want the default "a.out" file, and give the executable file a name that we want. we can use this command:
clang -o hello hello.c
so after this command is executed, in the folder there will be not just a.out, but also a "hello" file.
To run the program, we can just type:
./hello
To shorten the command clang -o hello hello.c, in this IDE they made the command “make” to do all this:
make hello
Clear all the screen: Ctrl + L
Clear the current line: Ctrl + U
So this will delet whatever you just typed in the current line, and the curser goes to the beginning of the line. So this saves you from pressing delet key lots of times if you have typed a long line of commands that you want to delet.