Single UNIX Specification- “The Standard” The Single UNIX Specification is the standard in which the core interfaces of a UNIX OS are measured. The UNIX standard includes a rich feature set, and its core volumes are simultaneously the IEEE Portable Operating System Interface (POSIX) standard and the ISO/IEC 9945 standard.
How do I find all files containing a specific string of text within their file contents? The following doesn't work. It seems to display every single file in the system. find / -type f -exec grep -H '
I know that using ls -l "directory/directory/filename" tells me the permissions of a file. How do I do the same on a directory? I could obviously use ls -l on the directory higher in the hierarchy...
I've got a large (by number of lines) plain text file that I'd like to split into smaller files, also by number of lines. So if my file has around 2M lines, I'd like to split it up into 10 files t...
Is there a file or menu that will let me change the settings on how to deal with line endings? I read there are 3 options: Checkout Windows-style, commit Unix-style Git will convert LF to CRLF when
I have two directories with the same list of files. I need to compare all the files present in both the directories using the diff command. Is there a simple command line option to do it, or do I h...
Use the command sudo netstat -plten |grep java used grep java as tomcat uses java as their processes. It will show the list of processes with port number and process id tcp6 0 0 :::8080 :::* LISTEN 1000 30070621 16085/java the number before /java is a process id. Now use kill command to kill the process kill -9 16085 -9 implies the process will be killed forcefully.
pgrep -x <process_name> | xargs kill -9 (incidentally, for this specific use case, might as well do pkill -9 -x <process_name>, but the question asked how to get the PID in general) Details The problem with the accepted answer (and all other answers) is that pgrep without -x (or manually ps | grep, or, for some reason, pidof) will match processes for which the <process_name> term is a ...
Since every Unix does things a little differently -- Solaris, Mac OS X, IRIX, BSD, and Linux all have their quirks -- POSIX is especially useful to those in the industry as it defines a standard environment to operate in.