Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 50557

Manipulating files: copying, renaming, searching, analyzing, archiving, etc. For operating on text in a file, see /text-processing. For questions about the Files file manager (formerly Nautilus), see /nautilus.

5
votes
Your file is not corrupted; On Linux and POSIX systems, as long as a running process has an opened file descriptor to some file that it is writing, it will be able to continue writing it, even if you …
answered Jul 30 '15 by Basile Starynkevitch
3
votes
) & capabilities(7) Conversion from user names to user ids is done by libc functions like getpwnam(3). The libc may access files (notably /etc/passwd) for that, see nsswitch.conf(5) Regarding opening files … , /sbin/modprobe, /sbin/poweroff, etc... You might get the full list by using strings on the uncompressed vmlinux kernel file. Notice also that several files paths are hardcoded in the dynamic loader …
answered Aug 18 '15 by Basile Starynkevitch
1
vote
You might put your file in some FUSE filesystem. You'll then need to write some FUSE server to handle IO to such files. It might take you some significant effort (so I am not sure it is worth the pain) …
answered Aug 12 '15 by Basile Starynkevitch
3
votes
The 9 in flock(1) is just an example (the author of the man page might have chosen 42 or many other numbers). Some shell scripts get executed in some weird contexts, in which file descriptor 3 might b …
answered Aug 7 '15 by Basile Starynkevitch
22
votes
) - or none, even if most files have only one name (but see link(2) & stat(2)). Since the same file could be named foo.txt and bar.gz it does not make a lot of sense to attach importance to file …
answered Apr 30 '18 by Basile Starynkevitch
0
votes
touch some foo.done empty mark file (see Anfi's answer), and have rules in your Makefile for all that. BTW, these mark (or log) files could sit in some other directory. GNU make (and ninja, etc …
answered Oct 18 '17 by Basile Starynkevitch
3
votes
Assume the files are textual, and not too big (e.g. less than 10000 lines). Then you might try using head(1) (maybe as head -vn -0 file* with GNU head) like this head -10000 file1 file2 file3 … Remember that some files are binary, that is they contain something else than text. For example, a core dump, an sqlite database file, a PNG image, an executable file, or even some OpenDocument file …
answered Apr 18 by Basile Starynkevitch
4
votes
Notice that mmap(2) often wants a file descriptor usually provided by open(2); in that sense, open is more fundamental. Notice also that the virtual address space of some process is modified not only …
answered Aug 11 '17 by Basile Starynkevitch
19
votes
In addition of device nodes explained in other answers (created with mknod(2) or supplied by some devfs), Linux has other "magical" files provided by special virtual file systems, in particular in … /proc/ (see proc(5), read about procfs) and in /sys/ (read about sysfs). These pseudo files (which appear -e.g. to stat(2)- as ordinary files, not as devices) are a virtual view provided by the kernel …
answered Nov 6 '15 by Basile Starynkevitch
-1
votes
The root can do anything and permission tests are bypassed for it. Read also about setuid. Since a program -even head or a shell, even when run by root (whose uid is 0 by definition)- uses system ca …
answered Apr 19 by Basile Starynkevitch
29
votes
However when commands are being run, a copy of their files from the hard disk is put into the RAM, This is wrong (in general). When a program is executed (thru execve(2)...) the process (running … wonder about is if the double life of a command, one on the hard disk, the other in the RAM is also true for other kind of files, for instance those who have no logic programmed, but are simply …
answered May 30 '17 by Basile Starynkevitch