• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » echo Command : Practical Examples For SSH

By Abhishek Ghosh April 17, 2015 5:13 pm Updated on April 17, 2015

echo Command : Practical Examples For SSH

Advertisement

Not much is usually known by a unix/GNU Linux newbie about the potential power of echo. echo can be used on command line or used within a shell script. The later usage is more common and actual powerful usage of echo is done only within the shell scripts.

 

echo Command : Basics

 

echo not only echoes the text. The name of the utility points to a bit lesser capability.

There is not much to write about the examples given in the echo™s manual page. One can run man echo to read and master echo. This guide covers only some practical commons which we can use on, for example SSH.

Advertisement

---

 

echo Command : Practical Examples For SSH

 

We are providing only few examples of echo here. First one is to list only the files with certain extension at certain location. Some times on SSH we need to list only the .conf file, just for example; if we need to list all the .conf files at /etc/nginx location, we can change directory there and run :

Vim
1
echo *.conf

This will list all the files under that directory :

Vim
1
echo *

we can count them :

Vim
1
echo * | wc -w

As we written before, echo can be used to empty any file, for example, we want to empty /etc/nginx/nginx.conf , then we can do this :

Vim
1
echo ' ' > /etc/nginx/nginx.conf

> writes data to an exiting file. >> is a kind of forcing. It will either overwrite or create a new file.

echo Command - Practical Examples For SSH

In the reverse way, we can write stuffs in the file :

Vim
1
echo -e "server \t{\n\tuser\twww-data;\n\terror_log\tlogs/error.log notice;\t\n\t}

\t, \n, -e are explained in the man page of echo. This ends the story with echo. Obviously, the commands can be combined or piped. One example of unix piping is given in the example, a bit practice will give more ideas on how to use echo.

Tagged With echo command ssh , how do I do ssh after a echo command in vim , ssh echo

This Article Has Been Shared 675 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to echo Command : Practical Examples For SSH

  • Analysis of Cloud Computing Company : Rackspace

    Analysis of Cloud Computing Company is a continued topic and this is on the Worlds Largest Public Web Hosting Company The Rackspace Cloud.

  • Rackspace Cloud Sites Versus Rackspace Managed Cloud Servers

    Rackspace Cloud Sites Versus Rackspace Managed Cloud Servers – even Rackspace themselves will fail to give the aspects we can provide you ! Have a quick check.

  • SaaS : Everything You Wanted To Know

    SaaS or Software as a Service is designed by the architecture to be used by the consumer. SaaS is the model oCloud which the general users mostly know to exist.

  • HSDPA/3G USB Modem Brands and Models : Non Vendor-locked

    HSDPA/3G USB Modem Brands and Models from reputed brands are Non Vendor-locked, are feature rich,offers choice more than bundled with Internet Service Provider.

  • Fundamentals of Cloud Computing

    Fundamentals of Cloud Computing represents the History, Characteristics, Cloud Computing Models and Implementation of Cloud Computing in separate paragraphs.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021
  • What is Conway’s Law? January 14, 2021
  • Effects of Digitization on Companies : Part XIII January 13, 2021
  • What is SoftAP Mode? January 12, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "echo Command : Practical Examples For SSH," in The Customize Windows, April 17, 2015, January 17, 2021, https://thecustomizewindows.com/2015/04/echo-command-practical-examples-for-ssh/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy