LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-21-2002, 05:57 PM   #1
northfield
LQ Newbie
 
Registered: Aug 2002
Location: UK
Distribution: mandrake, redhat
Posts: 29

Rep: Reputation: 15
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?
 
Old 08-21-2002, 06:10 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
did you try
ls -d *
 
Old 08-21-2002, 06:13 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
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.
 
Old 08-21-2002, 06:28 PM   #4
northfield
LQ Newbie
 
Registered: Aug 2002
Location: UK
Distribution: mandrake, redhat
Posts: 29

Original Poster
Rep: Reputation: 15
$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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
putty display loops on listing directories with many files, through expect script vineet.k Linux - General 5 03-13-2007 09:44 AM
Bash - listing directories tarja Programming 8 12-03-2005 04:03 PM
long listing using ls -l command display year or time of the file mnd_world Linux - Newbie 1 05-20-2004 11:39 AM
recursively listing directories full paths kubicon Linux - Newbie 2 02-22-2004 03:55 PM
proftpd...hangs before listing directories bstew007 Linux - Software 7 12-23-2002 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration