Opening Files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Opening Files
# 1  
Old 11-09-2003
Network Opening Files

I'm a new to UNIX/LINUX. I just put cygwin on my laptop and I can navigate around the directories, but I can't open files (.doc, .ppt, .html or .exe). Is there an explicit command to do this? I know that in Solaris when it does not recognize the file, it brings up the list of available viewing applications, much like Windows, but I've looked through all my UNIX books and can't find a thing about opening files. It's mostly about navigating through directories and cmds and flags for display of info. I know cygwin is a LINUX emmulator, but I have a feeling that this is not specific to UNIX/LINUX. It's either cygwin or it's my lack of knowledge. Please let me know if you've had similar problems or if you see blatant stupidity here. It's possible. I've just migrated to UNIX from a life of Window$ and I'm admittedly still green.--thanks--AJ
# 2  
Old 11-09-2003
well what command are you using to open the file? you can open anything (except binary files) with a pager like less

eg:

less filename.whatever

you need a viewer for different types of files.

if you want to parse an html file you could open it with lynx if you have it installed

eg:

lynx something.html

if you want to execute something you would generally do it with:

./filename

and so on.
# 3  
Old 11-09-2003
OK, I tried the less command and it worked on my .exe files, which is good, but I'm still perplexed about other files. It sounds like it might be a cygwin thing. If I want to open up a file on my desktop called test.doc, MS word, how could I do that like I would if I were just double-clicking on the object on my desktop using Windows2000? That's my current point of being stuck, but thanks for the help you've provided already.
# 4  
Old 11-09-2003
i dont know there may be a commandline app for viewing .doc files, search freshmeat.net or sourceforge.net for something like that.
otherwise why not use word? if your running X on cygwin then you can download openoffice or kword or something like that.
# 5  
Old 11-10-2003
ppt and doc are MS Office files on Windows. On Unix/Linux we do use OpenOffice to open MS Office files, simply because it is the best alternative for MSO on non-Windows platform. So you are on Windows, why not fire up MS Office to open them?

IMO cygwin does not give you a true Unix environment. If you want to try PC-based Unix, try some distro of Linux. IMO cygwin is good for being able to display forwarded X11 connections from remote servers without paying for an X emulator on Windows. Beyond that, messing with cygwin doesn't really worth the effort.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Loop Script and not opening files containing spaces

Hello, I wrote a simple script, that basically wait for a *.dat-file in a certain folder, which is always a zipped file and extracts it. It worked before and i changed nothing in the script, but since last week i have the problem, that it doesnt extract files containing a space. How do i make... (4 Replies)
Discussion started by: blend_in
4 Replies

2. Programming

help with opening files and reading them in C

In C, given a name or path to a file, how do I check if the path is valid, and how can I check its permisions will let me read from it, and how do i check if its an empty file? (15 Replies)
Discussion started by: omega666
15 Replies

3. Shell Programming and Scripting

Perl-opening a file then copying files

Good morning guys!! Im still practicing with Perl and now Im trying to open a file, and copy its contents to another file. Them I want to remeove the information out of the orginal file after it is copied over. The flow should be messages-->messages1-->messages2. Kind of like a log... (1 Reply)
Discussion started by: bigben1220
1 Replies

4. Web Development

opening text files with javascript

Im aware under IE, javascript uses ActiveX Objects to open up and manipulate text files, excel files etc.. How abouts would I open a text file using javascript in Firefox ? thanks (1 Reply)
Discussion started by: JamesGoh
1 Replies

5. Shell Programming and Scripting

Opening Files and checking contents in Perl

Hi All, I need some expert help in performing the following in Perl. I have a code below but it doesn;t seem to work. Can any expert give me some advice? Below are the requirements 1) Open numerous files assigned to an array @FILES. Note that the files are always named with the term... (7 Replies)
Discussion started by: Raynon
7 Replies

6. Shell Programming and Scripting

error while opening files in a directory

I tried opening the files in a directory and print thier names. But it was thowing the error "unable to open directorty at t5.pl line 2." Can u plz correct this error in below mentioned code. #!/data/scoredev/perl opendir(HOMEDIR,"c:\vin") || die("unable to open directorty");... (3 Replies)
Discussion started by: vinay123
3 Replies

7. Shell Programming and Scripting

Opening Files as command line arguments

Hi have set a command line argument where the user enters the filename. I have set a condition that if the command line is null (user just enters return), the script will exit (with an error message). However, what if the user types something and the file isn't found. How will I go about... (20 Replies)
Discussion started by: Cactus Jack
20 Replies

8. UNIX for Dummies Questions & Answers

Opening Files in append mode

Is there any other way to open a file in append mode without using C calls or >> redirection? (1 Reply)
Discussion started by: vidhya
1 Replies

9. UNIX for Dummies Questions & Answers

opening non-html files in lynx??

when i try to open a txt file in lynx I need to provide the filename or use wildcards to open. Autocompletion doesn't work for some reason. Also, trying to open files like: .sh, .py etc. ends up in the following error: lynx: Start file could not be found or is not text/html or text/plain ... (0 Replies)
Discussion started by: riwa
0 Replies

10. UNIX for Dummies Questions & Answers

Opening files

I am very new to unix. I want to open a file and read one line in at a time. Can anybody help? (3 Replies)
Discussion started by: saarshad001
3 Replies
Login or Register to Ask a Question