LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   File Viewer to run from promt (https://www.linuxquestions.org/questions/linux-software-2/file-viewer-to-run-from-promt-130602/)

geodd 01-01-2004 01:39 PM

File Viewer to run from promt
 
Hello, new to Linux, running slackware 9.1.
Is there a good file viewer that can be run from the command line before starting X. Thanks.

druuna 01-01-2004 01:57 PM

If you only want to view the file:

cat <filename>
more <filename>
less <filename>

The last 2 give you some navigation control (up/dwon, search things like that).

If you want to edit file from the commandline:

vi <filename>
emacs <filename>

There are a lot more, but these 2 are used most. Do check out how they work. Basics can be found in the manpages.

geodd 01-01-2004 02:28 PM

Thanks Druuna, I quess I should state my question more clearly. What I was looking for was some program to view the list of files and directories, something other than the ls command. Thanks for the help.

druuna 01-01-2004 05:20 PM

ls was made for that, here's another way to show what files/dirs there:

$ echo *

g-rod 01-01-2004 05:30 PM

midnight commander
mc
might be what you are looking for.

Mega Man X 01-01-2004 05:32 PM

Would you be looking for a file manager to run from the command line maybe? If so is the case, Midnight Commander is what you seek :). It also has a good text editor on it. Most likely it's already installed at your system. Type mc and see if it is. If not, search into your Slack's cds and you may find it. Or else:

http://www.ibiblio.org/mc/

Good luck!

Mega Man X 01-01-2004 05:32 PM

argh :) looks like g-rod beat me :)

g-rod 01-01-2004 05:34 PM

But you gave a more complete responce.

Mega Man X 01-01-2004 05:36 PM

:)

geodd 01-01-2004 06:52 PM

Thanks everyone. Before I got back to the board I discovered Midnight Commander, and it was what I wanted. Takes me right back to DOS and Norton Commander. With this Linux stuff it pays to perservere.


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