shell - Supressing backup files in a ls command not working
2014-04
How do I suppress backup files displayed in ls?
I've already tried - ls --ignore-backup
and ls -B
Neither suppress the back-up files created by the editors. Am I doing something wrong? or Is there another way I can get the command to display only the non-backup files? Thanks in Advance!
Does it work like that?
Try this sample here and fix it for your needs
$ ls --ignore='.??*' --ignore='.[^.]' --ignore='#*'
Possible Duplicate:
What does the @ in ls -al mean?
When doing an ls -l some files are tagged with "@" like this:
-rw-r--r--@ 1 master staff 2074042 Feb 3 19:26 openssh-5.1p1-vs-openbsd.diff
What does that mean?
They are extended attributes. ls -l@ shows them (mostly they are flags to indicate that the file is coming from the internet, in those cases, when opening the file (or installing a DMG) MacOS will ask if you really want to open it). The xattr command allows you to change them.
There is another one too. ls -lO (upper case O) shows the flags set via chflags command. ls -lO@ shows the file in it's full glory.