LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 05: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, 05: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 05:49 AM.
 
Old 08-04-2003, 05:48 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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 01:24 PM
Linux equivalent for "makedevice" command gan_04 Programming 1 07-26-2005 10:05 AM
equivalent of "what" shell command in Linux raees Linux - General 4 03-16-2004 09:59 AM
RH9,it apper something wrong when I type Command "rpm" setactive Linux - General 1 07-31-2003 11:37 AM
Linux Equivilant to DOS "Type" command Huggles Linux - General 9 02-27-2002 11:19 PM


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