Top "Posix" questions

POSIX (Portable Operating System Interface) is a set of standards defining programming APIs, a command interpreter, and common utilities for Unix-like operating systems.

How can I check if a directory exists in a Bash shell script?

What command can be used to check if a directory exists or not, within a Bash shell script?

bash shell unix posix
How to echo shell commands as they are executed

In a shell script, how do I echo all shell commands called and expand any variable names? For example, given …

bash shell sh posix trace
How do I execute a command and get the output of the command within C++ using POSIX?

I am looking for a way to get the output of a command when it is run from within a …

c++ process posix system return-value
How to kill all processes with a given partial name?

I want to kill all processes that I get by: ps aux | grep my_pattern How to do it? This …

linux bash posix
What is the proper #include for the function 'sleep()'?

I am using the Big Nerd Ranch book Objective-C Programming, and it starts out by having us write in C …

c posix sleep
What is the meaning of "POSIX"?

What is POSIX? I have read the Wikipedia article and I read it every time I encounter the term. The …

linux unix posix terminology
What is /dev/null 2>&1?

I found this piece of code in /etc/cron.daily/apf #!/bin/bash /etc/apf/apf -f >> /dev/…

shell syntax posix io-redirection
How to get the current time in milliseconds from C in Linux?

How do I get the current time on Linux in milliseconds?

c linux posix
C++ error: undefined reference to 'clock_gettime' and 'clock_settime'

I am pretty new to Ubuntu, but I can't seem to get this to work. It works fine on my …

c++ linux ubuntu posix time.h
Kill all processes for a given user

Is there a reliable way to kill all the processes of a given user? kill(-1, SIGKILL) as that user …

posix