NOTE: you can combine these flags.

IE: I regularly use:
ls -la | more
OR
ls -la | less

sig



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Michael Walters
Sent: Saturday, February 05, 2005 7:52 PM
To: CLUG General
Subject: [clug-talk] Thanks everyone


Hello All those who helped me by suggesting piping through less.


Thank you very much. I have tried all of your suggestions and they all work.

I will tell you how I liked each one of the options for each purpose I want.

ls -m | less   works but it is too messy for me.

ls -a | less    works beautifully  for scrolling through all the files and 
directories both hidden and visible. When I want to look at all the hidden 
files in a directory I will use that option.

ls -l | less  works beautifully for scrolling through all the files that I 
want to check the permissions on. There will be times I will use this option.

ls | less works well for page up and page down in the current user directory. 
This works well for locating a file I just made and checking that I spelled 
it the way I want to spell it. 

If I find a file is there but I made a typographical error in its spelling, I 
can use the move command.

e.g. I create a file called clasical_gas and want to make it classical_gas.txt

mv cla (tab completion) and get mv clasical_gas 

Then I type classical_gas.txt .

That is the full command is mv clasical_gas classical_gas.txt.

Then I would do an "ls | less and use page down and page up to scroll to 
classical_gas.txt to see that it is there and also to make sure that 
clasical_gas is not there.

Thanks again, Szemir, Shawn, Aaron, and Mel.

Regards,

Michael

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to