Search the Site:

How to Display the Contents of a File in Unix

Can you help me on how to display the contents of a file in unix.

Thanks in advance.

Re: How to Display the Contents of a File in Unix

Use the cat command. At the terminal, use the command:

cat <path_to_file>

This will display the content of the file on the terminal. The path_to_file maybe the absolute path or the relative path.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <i> <object> <param> <embed> <blockquote>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

2 Steps to Post a New Problem

2 Steps to Post a New Problem

Register
Login
Post New Problem

DISCLAIMER: The content on the site has been submitted by the users. NibbleGuru.com has no responsibility other than in removing material from the website when we have been notified of a copyright violation. Notify here.