About 38,300 results
Open links in new tab
  1. What are the special dollar sign shell variables? - Stack Overflow

    Sep 14, 2012 · In Bash, there appear to be several variables which hold special, consistently-meaning values. For instance, ./myprogram &; echo $! will return the PID of the process …

  2. The UNIX® Standard | www.opengroup.org

    May 22, 2025 · 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 …

  3. bash - Shell equality operators (=, ==, -eq) - Stack Overflow

    unix bash shell script equal comparison operator is not comparing. 1. Equal and not equal operators not ...

  4. What does the line "#!/bin/sh" mean in a UNIX shell script?

    Sep 10, 2011 · When you try to execute a program in unix (one with the executable bit set), the operating system will look at the first few bytes of the file. These form the so-called "magic …

  5. unix - How to check permissions of a specific directory ... - Stack ...

    In GNU/Linux, try to use ls, namei, getfacl, stat.. For Dir [flying@lempstacker ~]$ ls -ldh /tmp drwxrwxrwt. 23 root root 4.0K Nov 8 15:41 /tmp [flying@lempstacker ~]$ namei -l /tmp f: /tmp …

  6. unix - How to get PID of process by specifying process name and …

    Jul 3, 2013 · Solution (Exact Process Name Match) pgrep -x <process_name> | xargs kill -9 (incidentally, for this specific use case, might as well do pkill -9 -x <process_name>, but the …

  7. unix - Diff files present in two different directories - Stack Overflow

    Nov 9, 2012 · 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 …

  8. unix - How can I pretty-print JSON in a shell script? - Stack Overflow

    Dec 9, 2008 · From the Unix command-line with Node.js, specifying a filename that contains JSON, and using an indent of ...

  9. How to remove files and directories quickly via terminal (bash shell ...

    Apr 15, 2017 · Although all the options mentioned above are standard among all the Unix flavors listed, there are some differences too. For example, OS X (but not Linux) has "rm -d", which …

  10. bash - How can I split a large text file into smaller files with an ...

    As an aside, OS X users should make sure their file contains LINUX or UNIX-style Line breaks/End-Of-Line indicators (LF) instead of MAC OS X - style end-of-line indicators (CR) - …

Refresh