Command to list information about files.

learn more… | top users | synonyms

6
votes
3answers
4k views

ls gives me “illegal option”

I recently installed zsh and now whenever I ls or ls -l or ls anything I get "illegal option". Not sure where to start looking to fix this.
2
votes
5answers
1k views

ls returns nothing only in certain directories

I have a raid drive mounted here: /data/ And certain directories like this one: /data/somedir/somesubdir/ when I run ls w/ or w/o any flags, terminal doesn't return anything. It does not ...
3
votes
1answer
1k views

cp -R source_dir/* dest_dir/ does overwrite files?

I am trying to copy, recursively, the content of a directory to another using: cp -Rv source_dir/* dest_dir/ It seems that everything work ok but when I list that directory with ls -l the change ...
4
votes
1answer
2k views

Folder size is greater than 4K on ext3

Lets say we have a default formatted ext3 filesystem, I run under the assumption that folders take 4K of space on the disk. But, what does it mean when a folder is bigger than 4K? Here is a pic of ...
2
votes
1answer
484 views

ls -al stalls in an ssh session

I have a very strange problem when I log into a remote machine using ssh. Here's the scenario: I log into a remote machine using ssh (this machine in not in the local lan) I do ls (it works) I do ls ...
4
votes
2answers
2k views

What is the alternative to ls --time-style=full-iso in BSD?

command in Linux $ ls -lt --time-style=full-iso output ... -rw-r--r-- 1 mduda mduda 1855 2009-08-26 13:07:55.000000000 +0200 screen-configurations.xml drwxr-xr-x 2 mduda mduda 4096 2009-08-...
62
votes
2answers
19k views

Colors in bash after piping through less?

When I have dircolors defined life is full of... color. When I pipe ls through less to scroll around I lose the colors. Any suggestions?
1
vote
7answers
281 views

In Unix is it possible to list directory entries after a starting point?

For example, if my directory contains files a, b, c, c1, c2, c3, c4, d, e, f, g Is there a command something like the following pseudo code ls -filename>"c2" that would only list files c3, c4, d, e,...