Entry
Linux: Command: File: What is the equivalent of MSDOS 'type' a file? [cat / more / less / head]
Sep 19th, 2003 06:56
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 18 September 2003 - 08:32 pm ------------------
Linux: Command: File: What is the equivalent of MSDOS 'type' a file?
[cat / more / less / head]
---
---
Method: use the 'cat' command:
cat <your text filename>
---
e.g.
cat /etc/fstab
---
for more information type:
man cat
on the command line
---
---
Method: use the 'more' command:
more <your text filename>
---
e.g.
more /etc/fstab
---
for more information type:
man more
on the command line
---
---
Method: use the 'less' command:
less <your text filename>
---
e.g.
less /etc/fstab
---
for more information type:
man less
on the command line
---
---
Method: use the 'head' command:
To see only first 10 lines of your file, type the command:
head <your text filename>
---
e.g.
head /etc/fstab
---
for more information type:
man head
on the command line
---
---
Internet: see also:
http://www.faqts.com/knowledge_base/view.phtml/aid/24500/fid/107
----------------------------------------------------------------------