Web Hosting Talk







View Full Version : Unix command


gthorley
11-08-2000, 12:20 AM
I am trying to get used to using unix commands. When I enter "ls -1 filename" I understand it is supposed to return info about the file. When I enter this command it simply returns the filename.

Are there different commands depending on other factors?

UnitedTec
11-08-2000, 01:15 AM
Try this:
stat filename
Hope this helps

Félix C.Courtemanche
11-08-2000, 01:34 AM
it ls -l and not ls -1 (a L, not a one), l for long
try: ls --help for all the options ;)

ODE
11-08-2000, 02:18 AM
Use <ls -la> to show hidden files as well.

gthorley
11-08-2000, 09:54 AM
Originally posted by Félix C.Courtemanche
it ls -l and not ls -1 (a L, not a one), l for long
try: ls --help for all the options ;)

Thank you very much it works like a charm when you type the right thing. (ls -1 vs ls -l). I'm to green to spot these things late at night with blurry eyes. Also when you look at the 1 and l in the type when creating a post they are virtually alike except for the top left thingy.

United tech - Stat didn't work and help Stat returned no help topic match Stat.


[Edited by gthorley on 11-08-2000 at 09:02 AM]

Greg
11-08-2000, 01:34 PM
to see the files and other info about them, use ls -al