What is the best way to open a file as read/write if it exists, or if it does not, then create it and open it
How do you measure the memory usage of an application or process in Linux? From the blog article of Understand
I know that in Linux, to redirect output from the screen to a file, I can either use the > or tee. How
I've noticed with docker that I need to understand what's happening inside a container or what files
I want to traverse all subdirectories, except the "node_modules" directory.
What is POSIX? I have read the Wikipedia article and I read it every time I encounter the term. The fact is th
I tried to close the tomcat using ./shutdown.sh from tomcat /bin directory. But found that the server was not
Why does the C preprocessor in GCC interpret the word linux (small letters) as the constant 1? test.c: #incl
How can I use grep to show just file-names (no in-line matches) on Linux? I am usually using something like: f
I have lines like these, and I want to know how many lines I actually have... 09:16:39 AM all 2.00 0.0
I bumped into this strange macro code in /usr/include/linux/kernel.h: /* Force a compilation error if conditi
Before installing gnuplot, I set the environment variable GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src. During
How do I recursively grep all directories and subdirectories? find . | xargs grep "texthere" *
I have a C++ application, running on Linux, which I'm in the process of optimizing. How can I pinpoint wh
I would like to change the permissions of a folder and all its subfolders and files in one step (command) in L
I am trying to print a text in the terminal using echo command. I want to print the text in a red color. How
I was writing a simple script in the school computer, and committing the changes to Git (in a repo that was in
My colleague and I are working on the same repository. We've branched it into two branches, each technica