All Questions
Tagged with portability files
4 questions
13
votes
2
answers
4k
views
How portable is a gzip file over 4 GB in size?
To backup a snapshot of my work, I run a command like tar -czf work.tgz work to create a gzipped tar file, which I can then drop in cloud storage. However, I have just noticed that gzip has a 4 GB ...
17
votes
3
answers
23k
views
stat: modification timestamp of a file
I use stat -f %m .bashrc to get modification time of my .bashrc on osx. But when I run the same command on ubuntu, it spits error:
stat: cannot read file system information for %m': No such file or ...
3
votes
1
answer
2k
views
Will an `unlink` or `rename` portably and atomically make a `link` fail?
Question
Suppose I have some non-directory (file, named pipe/socket, whatever) at the pathname /tmp/foo and some other non-directory at the pathname /tmp/bar. Then two (or more) processes start ...
1
vote
4
answers
988
views
thoroughly find all links (hard and symlinks, and any combination thereof) leading to a file/dir [duplicate]
I want, only using "basic" commands (for maximum portability) (i.e., something that would work on AIX / Linux / etc., not just something using a recent nicety ^^), to find all the files (symlinks, ...