The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
Google UNIX.COM


Filesystems, Disks and Memory Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
to get the timestamp of files from the files and folders in Unix kishan HP-UX 2 04-09-2008 05:20 AM
removing old files except configuration files and folders jamcalicut Shell Programming and Scripting 1 11-09-2007 12:34 PM
listing folders and using in script truCido Shell Programming and Scripting 1 05-31-2007 04:11 AM
How to Differentiate Between Files and Folders? dgower2 UNIX for Dummies Questions & Answers 6 04-28-2006 09:10 AM
Recursive directory listing without listing files psingh UNIX for Dummies Questions & Answers 4 05-10-2002 07:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-04-2005
Registered User
 

Join Date: Jun 2005
Location: Sydney, Australia
Posts: 4
Question Sun UNIX Files & Folders listing

Hi guys, i'm new to UNIX and only know a small amout about it, but have just had some changes at work which now require me to interact with and work on SUN Unix systems often. I have reasonable knowledge of PC's but hope that you will be able to help me with these questions.

Part1.
I would like to know if there is a program or Unix command that will make a text file out put or similar listing of all the directories & files on a SUN Ultra5 computer running SunOS 5.6?

Part2.
I am using a Windows2000 computer to telnet to the SUN Ultra5 computer on our office network, and would like to know(if the above program does exist) how to transfer a file from the W2K PC to the SUN computer using Telnet, and also from the SUN PC to the W2K PC?

Please let me know if there is any more information you require.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-08-2005
antalexi's Avatar
Registered User
 

Join Date: May 2004
Location: Southern California
Posts: 52
Quote:
Originally Posted by Scrat
Hi guys, i'm new to UNIX and only know a small amout about it, but have just had some changes at work which now require me to interact with and work on SUN Unix systems often. I have reasonable knowledge of PC's but hope that you will be able to help me with these questions.

Part1.
I would like to know if there is a program or Unix command that will make a text file out put or similar listing of all the directories & files on a SUN Ultra5 computer running SunOS 5.6?

Part2.
I am using a Windows2000 computer to telnet to the SUN Ultra5 computer on our office network, and would like to know(if the above program does exist) how to transfer a file from the W2K PC to the SUN computer using Telnet, and also from the SUN PC to the W2K PC?

Please let me know if there is any more information you require.
Welcome to the world of unix...we hope you enjoy your stay.

Part 1. The unix command "ls -Al" (without the quotes) will give you a listing of the files and directories in the current directory. You can do a "ls -Al > filename" which will put the output of the "ls -Al" command into a filename of your choosing. If you do a "ls -al" you will see all of the files plus the hidden . (dot) files.

Part 2. I'm not sure if telnet is what you should use. Telnet will allow you to connect to a unix box from a pc, but I'm not sure you can use it to transfer files. Best bet is to search the man pages on the unix box for ftp, i.e. man ftp.

Hope this gets you started. Good luck!
Reply With Quote
  #3 (permalink)  
Old 08-08-2005
Registered User
 

Join Date: Jun 2005
Location: Sydney, Australia
Posts: 4
Quote:
Originally Posted by antalexi
....You can do a "ls -Al > filename" which will put the output of the "ls -Al" command into a filename of your choosing...
"filename" is this just the name you want (i.e. "list.txt") and it will automaticaly drop it in your current directory? or is it the path to store the file in and the file name you want to save it as?

Thanks very much for you help so far.
Reply With Quote
  #4 (permalink)  
Old 08-09-2005
Registered User
 

Join Date: Jun 2005
Location: Sydney, Australia
Posts: 4
Thumbs up

Ok... i tried the
ls -Al >filename
but that only gave me a listing of the contents of the directory i was in(root) and not the sub-directories, so i tried...
ls -AlR >filename
which did give me a complete listing of all files, folders & contents of sub-directories.

To do the transfer of the file to my windows 2000 computer, i installed the free version of "FTP Commander" http://www.internet-soft.com/ftpcomm.htm on my W2k PC then used it to open a FTP session to the SUN PC. This then alowed me to copy the file to my W2K PC easily.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0