LinuxQuestions.org
Visit Jeremy's Blog.
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, 06: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, 07:10 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

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

Rep: Reputation: 55
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, 07: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:44 AM
Bash - listing directories tarja Programming 8 12-03-2005 05:03 PM
long listing using ls -l command display year or time of the file mnd_world Linux - Newbie 1 05-20-2004 12:39 PM
recursively listing directories full paths kubicon Linux - Newbie 2 02-22-2004 04:55 PM
proftpd...hangs before listing directories bstew007 Linux - Software 7 12-23-2002 03:57 AM


All times are GMT -5. The time now is 02:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration