Questions tagged [ls]

Command to list information about files.

Command to list information about files.

manpage.

69 questions
0
votes
1 answer

Why does dovecot cur folder remain very large after emptying it?

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…
Doochz
  • 141
  • 3
0
votes
1 answer

ls *.csv --ignore="*pattern*" returns files which contain "pattern"

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 …
Greg
  • 1,657
  • 5
  • 27
  • 38
0
votes
2 answers

How would I list owners and permissions for all directories named X recursively?

Basically I would like to do a 'ls -l' recursively showing only those directories named web. How would I accomplish that?
Frank Barcenas
  • 605
  • 6
  • 18
0
votes
1 answer

Why does this file with dots and backslashes only show up with ls -lah and not ls?

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…
Jack Amoratis
  • 273
  • 3
  • 9
0
votes
1 answer

Unable to use grep regex to search for filename containing period

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…
lobi
  • 1,083
  • 2
  • 15
  • 30
0
votes
1 answer

cygwin find -ls behaviour like ls

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…
NeronLeVelu
  • 128
  • 4
0
votes
1 answer

ls -l shows constantly updating log files with few minutes old time stamps (modified time)

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…
Gautam Somani
  • 296
  • 3
  • 14
0
votes
0 answers

du, df and ls report wrong free / used space

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…
jeshurun
  • 254
  • 1
  • 2
  • 7
0
votes
5 answers

How can I make ls and xargs combined omit path

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 |…
Steve McLeod
  • 190
  • 1
  • 1
  • 10
0
votes
2 answers

Input/output error reading USB backup drive on CentOS 6.4

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…
Kev
  • 984
  • 4
  • 23
  • 46
0
votes
2 answers

How can I get ls to print output as it goes along?

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…
cpcallen
  • 144
  • 5
0
votes
2 answers

linux\solaris + print specific date format from file

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}' …
yael
  • 2,433
  • 5
  • 31
  • 43
0
votes
2 answers

-h not working for 'ls' command in Sun SPARC

I was trying this command for listing files in human readable form: $ ls -lh ls: illegal option -- h usage: ls…
neversaint
  • 103
  • 1
  • 1
  • 5
0
votes
1 answer

rsync directory is smaller at destination

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…
S.Beale
  • 1
  • 1
0
votes
1 answer

How can I search for symlinks that point to other symlinks?

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…
Displayname71
  • 109
  • 1
  • 7