September, 2011
Libraries
Compiling converts your source code into object or machine code, which the processor can understand. So the compiler produces an object file (.o) from your source code. The linker then pieces the object files together and herefrom produces an executable. If you wish to “compile only” i.e. to obtain merely the object file, you can [...]
Posted in Linux/Unix | No Comments »
at command
Scheduling a process to run automatically at a certain date and time can be quite useful. This is achieved with the at command. The at command reads a series of commands from the standard input and lumps them together into one single at-job to be executed at some point in the future. Syntax: at [-V] [...]
Posted in Linux/Unix | No Comments »
Kill – Killing Processes and the top Command
Sooner or later you will want to kill a process, whether it be some code executed in the background that is taking too long or simply a program that is misbehaving. If the code has been executed by the user in the background, then one can use the jobs command with the kill command: michael@michael-laptop:~$ [...]
Posted in Linux/Unix | No Comments »
Background Processes and the jobs Command
If your code takes a long time to run after execution, you may consider running it in the background. Consider the executable “test”, I run it as follows 1. Running Processes in the Background michael@michael-laptop:~$ ./test while it is running, you do much with the terminal. You can abort it with CTRL + C or [...]
Posted in Linux/Unix | No Comments »