How to create hidden files in Linux?

前端 未结 8 876
悲哀的现实
悲哀的现实 2021-01-22 16:02

In my program, I have to make a file hidden in order to avoid removal or modification of the file.

PATH=/etc/
NAME = file

Is there a function in

8条回答
  •  滥情空心
    2021-01-22 16:58

    Sure,you have to add '.' before filename and your file wouldn't be seen by user(except user will turn the hidden files show option on). You could change the attrybutes (chmod) to 755 and only user could rwx and others could rx.

提交回复
热议问题