In my program I have to create a hidden file in order to avoid remove or modification of file.
PATH=/etc/
NAME = file
Is there is function in c which allow to do that ?
Thanks.
In my program I have to create a hidden file in order to avoid remove or modification of file.
PATH=/etc/
NAME = file
Is there is function in c which allow to do that ?
Thanks.
In LINUX Hidden file are start with
.(DOT)
if you create files with starting
.(DOT)
, those files are hidden.You can use
chmod
to set permissions to the file.if you set only read only then those cannot be modified in program
if you want to use this from C-language use
system()
function to execute this commandif You use simple
ls -alF
you can see those files.the below files are hidden files In LINUX
There are no hidden files on Linux. Some tools don't show files starting with
.
as others already mentioned.Anyway, you can experiment with putting control characters like new-line into the filename. See Control characters in filenames are a terrible idea: