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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
08-04-2003, 04:42 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Reading, UK
Posts: 22
Rep:
|
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.
|
|
|
08-04-2003, 04:47 AM
|
#2
|
Member
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643
Rep:
|
cat <file_name>
Actually,cat is to concatenate.for more,'man cat'
Last edited by arunshivanandan; 08-04-2003 at 04:49 AM.
|
|
|
08-04-2003, 04:48 AM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
All times are GMT -5. The time now is 11:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|