About 57,900 results
Open links in new tab
  1. 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 …

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

    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...

  3. How can I extract a predetermined range of lines from a text file …

    Sep 17, 2008 · I need to extract a certain section of this file (i.e. the data for a single database) and place it in a new file. I know both the start and end line numbers of the data that I want. …

  4. bash - Parsing JSON with Unix tools - Stack Overflow

    Dec 24, 2009 · The standard POSIX/Single Unix Specification shell is a very limited language which doesn't contain facilities for representing sequences (list or arrays) or associative arrays …

  5. unix - What is the meaning of "POSIX"? - Stack Overflow

    Nov 23, 2009 · 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 …

  6. bash - What does " 2>&1 " mean? - Stack Overflow

    To combine stderr and stdout into the stdout stream, we append this to a command: 2>&1 For example, the following command shows the first few errors from compiling main.cpp: g++ …

  7. How can I convert bigint (UNIX timestamp) to datetime in SQL …

    Adding n seconds to 1970-01-01 will give you a UTC date because n – the Unix timestamp – is the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), …

  8. Converting unix time into date-time via excel - Stack Overflow

    Explanation Unix system represent a point in time as a number. Specifically the number of seconds* since a zero-time called the Unix epoch which is 1/1/1970 00:00 UTC/GMT. This …

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

    Jul 3, 2013 · 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) …

  10. git - How to change line-ending settings - Stack Overflow

    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 …