Answered by the Webhosting Experts
Tags +

Linux
Managed Services

Just Leave Linux to Us
Is maintaining your Linux server keeping your team bogged down? Alleviate unnecessary stress with one of Hivelocity’s Linux Managed Services plans. With reboots, monitoring, updates, and more, your team can rest easy knowing your hardware and OS are in the hands of hosting experts.

Configure your server today and see the benefits a Hivelocity managed Linux solution can offer you!

Tags +
Tags
...
...
160x600_hivelocity_dec20

How to Use Cat Command on Dedicated Server?

The “catcommand allows you to read /view the contents of the text files without editing them. The easiest method of reading a file is to use the “cat” command followed by the particular filename.

 

Please refer the below example:

 

cat logfile.txt

 

You can also append “less” to the output, in order to check the file page by page.

 

See the below example:

 

cat logfile.txt | less

It is also possible to save the output contents in a file and download,

so that you can check it offline.

To do this, simply type “cat” followed by an output redirection operator.

cat /proc/cpuinfo > /home/user/cpu-information.txt

The “cat” command can also be used to link multiple files together.

If you want to combine files, the best procedure is as follows:

See the below example:

cat myfile1 myfile2 myfile3

When you fire the above command, it will display the output contents on your screen,

which you can send to a file to download.

cat myfile1 myfile2 myfile3 > output.txt

Share

Facebook
Twitter
LinkedIn
Email
WhatsApp

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.

Watch our servers in their natural habitat

Click here to see more live streams or take a tour of our facilities.

Linux
Managed Services

Just Leave Linux to Us
Is maintaining your Linux server keeping your team bogged down? Alleviate unnecessary stress with one of Hivelocity’s Linux Managed Services plans. With reboots, monitoring, updates, and more, your team can rest easy knowing your hardware and OS are in the hands of hosting experts.

Configure your server today and see the benefits a Hivelocity managed Linux solution can offer you!