Administration… IPCS Toolcase 15 Dec 20226 Jan 2023 List segments and semaphore arrays Use -s for semaphores and -m for shared memory segments (or both): ipcs -s -m Manage memory segments View details of a memory segment (by…
C/C++… g-prof Toolcase 13 Dec 202115 Dec 2022 Install gprof apt-get install binutils Compile To use profiling you need to use the following flags: -g for debugging information -pg for profiling information Add the -g -pg flags to…
Administration… Apache virtual hosts example 28 Nov 202128 Nov 2021 Overview To setup virtual hosts on Apache the standard procedure is the following: First, create the directories of the document root for each siteIn the directory /etc/apache2/sites-available, create a configuration…
How-To… How to count lines of source code 13 Jul 2020 Install cloc: sudo apt install cloc And then run the command: cloc .
C/C++… Valgrind Toolcase 14 Mar 201915 Dec 2022 Install Valgrind via APT sudo apt install valgrind Compile the source program To compile the program use the following flags: -g3 -O0 (optional) Example in C gcc -g -Wall *.c…
How-To… Hints for debugging simple TCP applications 29 May 20182 Oct 2019 Summary of what you are going to install: ncatcurl Summary of the commands: sudo apt install ncat sudo apt install curl echo "hello world" > /dev/tcp/localhost/11111 echo "hello world" |…
How-To… Upload files with SCP 5 Nov 201725 Mar 2020 Prerequisites: scp (pre-installed on most Linux distributions) Let's say your student ID is sdiABCDEFG and lets say you have to upload your assignment to the following address: /home/users/kXX/projectN/sdiABCDEFG/ Here are…
How-To Computer maintenance and stability 4 Sep 20177 Dec 2022 Do not install software that advertises that it will speed up your computer or that it will magically repair and clean up your hard drive. Most of those programs do…