Reputation
3,600
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 12 32
Newest
 Custodian
Impact
~257k people reached

38m
reviewed Edit How to number a string in each line of a file
38m
revised How to number a string in each line of a file
explained the awk syntax and removed stdin/stdout redirection to avoid confusion
45m
awarded  Custodian
45m
reviewed Leave Open Ubuntu / SFTP: Enable Access for User B to a subdirectory of User A's home
46m
reviewed Leave Open Creating a complete Wine headless setup
46m
reviewed Close Need a consultant to help wtih uucp configuration
46m
comment Need a consultant to help wtih uucp configuration
Searching for job applicants...
47m
reviewed Close how to go mouseless
49m
reviewed Approve How to have tail -f show colored output
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