Global web icon
stackoverflow.com
https://stackoverflow.com/questions/7366775/what-d…
What does the line "#!/bin/sh" mean in a UNIX shell script?
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 number", which can be used to decide the format of the program and how to execute it.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/338037/how-to-…
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...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/83329/how-can-…
How can I extract a predetermined range of lines from a text file on Unix?
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. Does anyone know a Unix command (or series of commands) to extract all lines from a file between say line 16224 and 16482 and then redirect them into a new file?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/1955505/parsin…
bash - Parsing JSON with Unix tools - Stack Overflow
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 (also known as hash tables, maps, dicts, or objects in some other languages). This makes representing the result of parsing JSON somewhat tricky in portable shell scripts.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/1780599/what-i…
unix - What is the meaning of "POSIX"? - Stack Overflow
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.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/818255/what-do…
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++ main.cpp 2&...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/2904256/how-ca…
How can I convert bigint (UNIX timestamp) to datetime in SQL Server?
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), Thursday, 1 January 1970. In SQL Server 2016, you can convert one time zone to another using AT TIME ZONE. You need to specify the name of the time zone in Windows standard format:
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/46130132/conve…
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 number of seconds is called "Unix timestamp" or "Unix time" or "POSIX time" or just "timestamp" and sometimes (confusingly) "Unix epoch".
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/17440585/how-t…
unix - How to get PID of process by specifying process name and store ...
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 ...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/10418975/how-t…
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 when