Skip to content
Facebook-f Twitter Linkedin-in Youtube Rss
  • 1.646.775.2855
  • 91. 93536 44646
  • VPS control
  • Client Area
Medha Hosting Logo
  • HOME
  • SERVERS
    • DEDICATED SERVERS
    • VPS SERVERS
    • COLOCATION SERVICES
    • Email & Security
      • Email And Collaboration
        • Microsoft Office 365 – India
        • Microsoft Office 365 – US & Canada
        • Google G Suite – US & Canada
        • Google G Suite – India
      • SSL Certificates
  • SERVER MANAGEMENT
    • MICROSOFT SERVER SUPPORT
      • EXCHANGE SERVER SUPPORT
      • WINDOWS SERVER SUPPORT
      • MS SQL SERVER SUPPORT
      • MS IIS SERVER SUPPORT
      • MS SHAREPOINT SERVER SUPPORT
    • LINUX SERVER SUPPORT
      • CPANEL SERVER SUPPORT
      • DIRECTADMIN SERVER SUPPORT
      • VPS MANAGEMENT
      • VMWARE SERVER SUPPORT
      • PLESK SERVER SUPPORT
  • MANAGED IT SERVICES
    • Managed Cloud
      • GOOGLE CLOUD
      • AZURE CONSULTING
      • VIRTUALIZATION
      • AWS CONSULTING
      • OFFICE 365 MIGRATION
    • Managed Hosting
    • Professional Services
      • 365 X 24 X 7 NOC
      • LINUX ADMINISTRATION
      • PATCHING
      • HIGH AVAILABILITY SOLUTIONS
      • WINDOWS ADMINISTRATION
      • NETWORK ADMINISTRATION
      • APPLICATION SERVER MANAGEMENT
    • White Label Managed IT Services
  • ABOUT US
    • DATA CENTERS
    • LOCATIONS
      • New York City
      • Atlanta
      • Dallas
      • Houston
      • Chicago
      • Orlando
      • Calgary
      • Sydney
      • London
      • Dublin
      • Singapore
    • OUR PARTNERS
    • FAQS
    • AFFILIATES
    • CAREERS
    • CONTACT US
    • BLOG
      • Write For Us
Menu
  • HOME
  • SERVERS
    • DEDICATED SERVERS
    • VPS SERVERS
    • COLOCATION SERVICES
    • Email & Security
      • Email And Collaboration
        • Microsoft Office 365 – India
        • Microsoft Office 365 – US & Canada
        • Google G Suite – US & Canada
        • Google G Suite – India
      • SSL Certificates
  • SERVER MANAGEMENT
    • MICROSOFT SERVER SUPPORT
      • EXCHANGE SERVER SUPPORT
      • WINDOWS SERVER SUPPORT
      • MS SQL SERVER SUPPORT
      • MS IIS SERVER SUPPORT
      • MS SHAREPOINT SERVER SUPPORT
    • LINUX SERVER SUPPORT
      • CPANEL SERVER SUPPORT
      • DIRECTADMIN SERVER SUPPORT
      • VPS MANAGEMENT
      • VMWARE SERVER SUPPORT
      • PLESK SERVER SUPPORT
  • MANAGED IT SERVICES
    • Managed Cloud
      • GOOGLE CLOUD
      • AZURE CONSULTING
      • VIRTUALIZATION
      • AWS CONSULTING
      • OFFICE 365 MIGRATION
    • Managed Hosting
    • Professional Services
      • 365 X 24 X 7 NOC
      • LINUX ADMINISTRATION
      • PATCHING
      • HIGH AVAILABILITY SOLUTIONS
      • WINDOWS ADMINISTRATION
      • NETWORK ADMINISTRATION
      • APPLICATION SERVER MANAGEMENT
    • White Label Managed IT Services
  • ABOUT US
    • DATA CENTERS
    • LOCATIONS
      • New York City
      • Atlanta
      • Dallas
      • Houston
      • Chicago
      • Orlando
      • Calgary
      • Sydney
      • London
      • Dublin
      • Singapore
    • OUR PARTNERS
    • FAQS
    • AFFILIATES
    • CAREERS
    • CONTACT US
    • BLOG
      • Write For Us

In this post, we will see how to How to print file content to the screen using terminal commands in CentOS. CentOS is a Community Enterprise operating system which mainly focuses on the server. It is a part of Linux Operating System Distribution, and it is free to use. First, open the terminal

Total Time Needed: 30 minutes

Required Tools:

CentOS

Steps to print file content to the screen in CentOS

Step 1 :To Print Contents of a File
Use the command cat . For example, to print contents of the file password which is in, etc. type the command cat /etc/passwd and press enter. You can see that the contents of the file are printed.
ZDfa bdsbd
Step 2 : To Create a File
To create a new file use the command cat > file name and press enter. Now enter the content of the file , type ^C, and press enter again. For example, to create a file named tork.txt, type cat > tork.txt, and press enter. Now type the content, type ^C, and press enter.
ZDBdjhfmgum
Step 3: To Check if the File is Created
Type the command cat tork.txt and press enters you can see the contents of the created file.
ZDVbfdnjfmd
Step 4 : Rename Files:
To rename file, use the command cat old_name > new_name. For example, To change the password to passwd.txt type the command cat /etc/passwd > passwd.txt and press enter.
,
Step 5: Check if the File is Renamed
Use the command ls to check if the file is renamed. Type ls and click enter to see that file name Is changed to passwd.txt
ZDDvbdjgk
Conclusion:
To print file the content to the screen in CentOS please follow these steps. If you need any help please contact Medha Hosting.
Read Here: How To Move Files And Directories In CentOS?

Need help? Call our support team 24/7 at +1 646-775-2855

Medha Hosting Logo

We are Medha hosting, Fast Growing Business IT Services Company with most talented people.

USA: 30 N Gould St Ste R
Sheridan, WY 82801
Phone +1 646 775 2855

India: #74, 7th Cross, Kirshna Garden Incity Layout, Chikka kammanahalli, Banneraghatta Road, Bangalore 560083
Phone:+91 93536 44646

Servers and Cloud
  • Dedicated Servers
  • VPS hosting
  • cPanel servers
  • Office 365
  • G Suite
Services
  • Server support
  • Managed IT services
  • Data Center migration
  • Application management
  • Cloud management
Get Started
  • Client area
  • Resources
  • Tutorials
  • Affiliates
  • Docs
About
  • About Medha Hosting
  • Customer stories
  • Blog
  • Careers
  • Brand Assets
Facebook-f Twitter Youtube Linkedin-in Rss
Payment Button

© 2019 All rights reserved

  • Terms of Service |
  • Privacy Policy |
  • AUP |
  • Service Level Agreement