LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2003, 04:42 AM   #1
greendemon
LQ Newbie
 
Registered: Jul 2003
Location: Reading, UK
Posts: 22

Rep: Reputation: 15
Equivalent to Dos "Type" command?


Is there an equivalent to the Dos "Type" command to display the contents of a text file?

I used to often use something like "type readme.txt | more"

I suppose I can just display it with an editor, but a straight forward "type" kind of command can't do any damage accidentally, so it would be nice.
 
Old 08-04-2003, 04:47 AM   #2
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
cat <file_name>
Actually,cat is to concatenate.for more,'man cat'

Last edited by arunshivanandan; 08-04-2003 at 04:49 AM.
 
Old 08-04-2003, 04:48 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
cat, less or more... less is the best option, but then acutally more is often less anyway.

and of course unix uses the PROPER implementation of more, not just the crippled joke that your used to in dos
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux equivalent to DOS "tree" command? XDude Linux - Newbie 10 09-25-2014 12:24 PM
Linux equivalent for "makedevice" command gan_04 Programming 1 07-26-2005 09:05 AM
equivalent of "what" shell command in Linux raees Linux - General 4 03-16-2004 08:59 AM
RH9,it apper something wrong when I type Command "rpm" setactive Linux - General 1 07-31-2003 10:37 AM
Linux Equivilant to DOS "Type" command Huggles Linux - General 9 02-27-2002 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 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