LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Display wide listing of files and directories only? (https://www.linuxquestions.org/questions/linux-general-1/display-wide-listing-of-files-and-directories-only-28470/)

northfield 08-21-2002 05:57 PM

Display wide listing of files and directories only?
 
What is the command to see the Linux files in wide listing?
What is the command to display folders only?

On occasions I have to use Win98 and telnet or ftp into a remote Linux environment. I do this from Windows DOS prompt.
The problem is with the Win98 DOS prompt environment does not have a scrollbar, whereas Windows XP does.

My problem is when I enter the command
$ls
This shows all the files in a long list and since I have many files and folders some of the top files do not show?

I would like to display the files in wide listing i.e

file1 file2 file3 file4 ... fileN
rather then
file1
file2
...
fileN

What is the command for this? I have tried combinations like
$ls -w etc... but does not work
I have done search on the web and I thought this would be easily found on the web but I was very wrong.

The second questions
What is the command to display name of folders in Linux/Unix?
I have tried
$ls -d ... but this does not seem to be it?

neo77777 08-21-2002 06:10 PM

did you try
ls -d *

neo77777 08-21-2002 06:13 PM

also ls canbe aliased to something like ls -1 if you say that ls shows
file
file1
file2
......
fileN
unalias ls to get it working normally.

northfield 08-21-2002 06:28 PM

$ls -1
on telnet gives long listing
$ls
on telnet gives wide listing

$ls -1
on ftp gives long listing
$ls
on ftp gives long lisiting

ftp gives long listing for both commands.
I guess the best thing to do is open two clients. One for ftpo and the other for telnet?


All times are GMT -5. The time now is 01:18 AM.