My CentOS system, used for PHPList, accumulates incoming mail in this path:
/var/qmail/mailnames/example.com/noreply/Maildir/cur
There used to be hundreds of thousands of emails in this mailbox, they were bounce emails meant for bounce processing by…
Why does ls --ignore not ignoring the pattern?
Looking at the below example:
mkdir books
cd books
touch books_abby.csv
touch books_karen.csv
touch books_david.csv
touch books_tom.csv
This creates four files:
$ ls
books_abby.csv books_david.csv …
I am removing a file which has been identified as infected. This file has dots and windows-style backslashes in the name. (Linux directories are separated with slashes like this "/" whereas this file contains slashes like this "\")
The actual file…
Ubuntu 14.x. Using grep to search for all files linuxtest-client2. This includes multiple file extensions (csr, crt, key). When I grep for the middle portion of the filename, "2.", it also returns lines that contain "2" in addition to "2." when…
I use cygwin find with -ls (find . -ls) option to have a list of files with full path.
Due to UTF-16 (windows XP in this case) converted to en_UTF-8 under cygwin, special charactere like accent are translate into 2 octal escaped value (ex à is…
I gave the command ls -lt to see which log files are constantly being written into, since if they are being written into, the modified time will almost be very close to date command's output.
But strangely, the modified time in the ls command's…
We have an Ubuntu 12.04 server running on a VMware ESXi host, with multiple partitions, running Zimbra 8 (mta/ldap only). One of partitions is a 30GB partition mounted as /opt/zimbra/data. I had a rude wake up call this morning from my manager…
I have a folder called lib. In that folder are some files. I want to obtain all the names of the files that end in .jar, and concatenate them into a line, separated by spaces. I don't want the path name at all.
I've tried this:
ls lib/*.jar |…
I'm suddenly seeing some strange behaviour on our USB backup drive that doesn't make sense to me:
(2013-10-21 14:58:23 [root@newdc /]$ cd /mnt/backup/
(2013-10-21 14:59:03 [root@newdc backup]$ ls -la
ls: reading directory .: Input/output error
total…
It seems that under most situations ls will read the whole directory before producing any output - typically because it needs to sort or columnise the output. Normally this is fine but when reading a very large directory from a slow network server…
subject - print file date on solaris as format: yymmdd ( yy - year , mm - month , dd - day )
on Linux machine I type the following command in order to get: file date
as the following:
ls -l --time-style=+%Y%m%d /etc/hosts | awk '{print $6}'
…
I am having a difficult time using rsync from my computer to a remote server. I have a folder with a few sub directories and a lot of small files. On my computer the total size of my directory (using du -h) is 6.4GB. When I try to rsync it to the…
I have morass of chained symlinks like this scattered around:
A (symlink) -> B (symlink) -> C (file)
Some may even involve longer chains, I'm not sure yet.
When manually examining a single file it's easy to see what's going on but I'm looking for an…