Reputation
3,525
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 12 31
Newest
 Nice Answer
Impact
~241k people reached

Jun
6
awarded  Nice Answer
Jun
3
comment How are file types known if not from file suffix?
I agree. I was trying to answer as simply as possible without going down too many rabbit holes.
Jun
3
revised How are file types known if not from file suffix?
added 15 characters in body
Jun
3
revised How are file types known if not from file suffix?
added 1005 characters in body
Jun
3
comment How are file types known if not from file suffix?
You are right in how you explained the behavior of file. It does in fact make an analysis of the file. However, most file types are identified by a header of sorts. 0000000: 7f45 4c46 0201 0100 0000 0000 0000 0000 .ELF............ is a header of an ELF executable (first few bytes of /bin/ls). Similarly #!/bin/bash at the top of an ASCII file would identify it as a shell script. Another example: 0000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 .PNG........IHDR (a .png image)
Jun
3
answered How are file types known if not from file suffix?
Jun
2
reviewed Approve Move /var to different partition
Jun
2
reviewed Approve Why are bash tests so picky about whitespace?
Jun
2
comment User cannot see directory permissions
It depends on what is in the directory and what security is needed. I'd say 750 or 770 (drwxr-x--- or drwxrwx--- respectively)
Jun
2
reviewed Approve Execute a program at login
Jun
2
revised User cannot see directory permissions
added 6 characters in body
Jun
2
comment Allow another user to run a specific script as my ID
You will need root to edit the sudoers file. There is simply no other way to accomplish what you are trying to do.
Jun
2
comment How do I get the value of a named option of an already running process in Linux?
There was a typo in my grep statement. The comma should've been a period. Sorry about that
Jun
2
revised How do I get the value of a named option of an already running process in Linux?
edited body
Jun
2
reviewed Approve Issues with getting a tun0 connection to route any and all connections from eth0 to be made to this interface and if not working drop
Jun
2
comment How do I get the value of a named option of an already running process in Linux?
No it won't. There is no white space at the end of the sed search. .* is any number of characters including nothing at all.
Jun
2
answered Allow another user to run a specific script as my ID
Jun
2
revised How do I get the value of a named option of an already running process in Linux?
added 45 characters in body
Jun
2
reviewed Approve Can a script be running even after it's been killed?
Jun
2
answered User cannot see directory permissions