07-01-2016
I think some clarification about "hidden files" is in order, because it seems this in first place has lead to the confusion:
"Hidden files" is a concept going back to the MS-DOS ("FAT") file system. There was an attribute in the directory entry marking a file "hiidden" (or not hidden) and all programs processing or creating file lists didn't show files with this attribute set as long as not explicitly told to do so.
There is no such concept at all in place in UNIX filesystems! In fact "ls" by convention does not display file(name)s starting with a "." unless told otherwise by the use of the "-a" switch. Still, this is only "ls" and it makes the files/directories any special at all. The whole mechanism is just to allow for the rc-files, config directories and other things one is "normally" not interested in to be filtered from display when doing an "ls". But that is no attribute inherent to the file, it is just a mechanism inside "ls".
I hope this helps.
bakunin
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have never heard of this before but someone at work here says there is a command to find files that are under currently mounted filesystems. Does anyone know what this command is and is it available on HP-UX? (3 Replies)
Discussion started by: keelba
3 Replies
2. Shell Programming and Scripting
Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is:
find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \;
But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Discussion started by: pochaw
4 Replies
3. Shell Programming and Scripting
Hi Guys,
I need to count files in a dir which were updated yesterday.
ls -lth | grep -i 'Jul 7' | wc -l
The dir holds files of last 15 days and total count is as 2067476.
Is it efficient to count the files using perl? I have developed the following perl script making use of system().
Can... (3 Replies)
Discussion started by: Asteroid
3 Replies
4. Shell Programming and Scripting
I have written a script to secure delete all files in a quarantine folder and my Trash folder. All the commands run trough Terminal via the script.
The problem I am having is when I am changing the directory to the hidden Trash folder. When I do cd /Users/WatsonN/.Trash all it does is take it to... (2 Replies)
Discussion started by: WatsonN
2 Replies
5. Shell Programming and Scripting
I have an application consisting of a number of perl files. I want to find those perl files that have no documentation yet, so I tried the following from the root level of the directory where the application resides:
perldoc -r *
The output is something like the following:
No documentation found... (2 Replies)
Discussion started by: figaro
2 Replies
6. Cybersecurity
Hi,
Me i ask if someone knows about this hidden directory or it me knows where this dir associated with or in a program.
I had and notices this .awo dir with bin files inside title 6770669_info.eeesync files in my directory. I wonder if this is associated with my backup program or any program... (0 Replies)
Discussion started by: jao_madn
0 Replies
7. Shell Programming and Scripting
I am completely new to perl programming. My father is helping me learn said programming language. However, I am stuck on one of the assignments he has given me, and I can't find very much help with it via google, either because I have a tiny attention span, or because I can be very very dense.
... (4 Replies)
Discussion started by: kittyluva2
4 Replies
8. Shell Programming and Scripting
I'm writing a Perl script which has its 1st step as to copy files from one directory to another directory. The Source directory has got files with extension, without extension, directories etc. But I want to copy ONLY files with no extension. The files with extensions and directories should not get... (2 Replies)
Discussion started by: jhamaks
2 Replies
9. Shell Programming and Scripting
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT CENTOS
mattrib
mattrib(1) General Commands Manual mattrib(1)
Name
mattrib - change MSDOS file attribute flags
Note of warning
This manpage has been automatically generated from mtools's texinfo documentation, and may not be entirely accurate or complete. See the
end of this man page for details.
Description
Mattrib is used to change MS-DOS file attribute flags. It has the following syntax:
mattrib [-a|+a] [-h|+h] [-r|+r] [-s|+s] [-/] [-p] [-X] msdosfile [ msdosfiles ... ]
Mattrib adds attribute flags to an MS-DOS file (with the `+' operator) or remove attribute flags (with the `-' operator).
Mattrib supports the following attribute bits:
a Archive bit. Used by some backup programs to indicate a new file.
r Read-only bit. Used to indicate a read-only file. Files with this bit set cannot be erased by DEL nor modified.
s System bit. Used by MS-DOS to indicate a operating system file.
h Hidden bit. Used to make files hidden from DIR.
Mattrib supports the following command line flags:
/ Recursive. Recursively list the attributes of the files in the subdirectories.
X Concise. Prints the attributes without any whitespace padding. If neither the "/" option is given, nor the msdosfile contains a
wildcard, and there is only one MS-DOS file parameter on the command line, only the attribute is printed, and not the filename.
This option is convenient for scripts
p Replay mode. Outputs a series of mformat commands that will reproduce the current situation, starting from a situation as left by
untarring the MS-DOS file system. Commands are only output for attribute settings that differ from the default (archive bit set for
files, unset for directories). This option is intended to be used in addition to tar. The readonly attribute is not taken into
account, as tar can set that one itself.
See Also
Mtools' texinfo doc
Viewing the texi doc
This manpage has been automatically generated from mtools's texinfo documentation. However, this process is only approximative, and some
items, such as crossreferences, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate repre-
sentation in the manpage format. Moreover, not all information has been translated into the manpage version. Thus I strongly advise you
to use the original texinfo doc. See the end of this manpage for instructions how to view the texinfo doc.
* To generate a printable copy from the texinfo doc, run the following commands:
./configure; make dvi; dvips mtools.dvi
* To generate a html copy, run:
./configure; make html
A premade html can be found at `http://www.gnu.org/software/mtools/manual/mtools.html'
* To generate an info copy (browsable using emacs' info mode), run:
./configure; make info
The texinfo doc looks most pretty when printed or as html. Indeed, in the info version certain examples are difficult to read due to the
quoting conventions used in info.
mtools-4.0.18 09Jan13 mattrib(1)