Android Century
  • Home
  • Android Zone
    • Android Apps
    • Android Games
    • Apps APk Files
    • Games Apk Files
    • Apps Hack Tricks
  • Reviews
  • Fantasy Zone
    • Entertainment
    • Quotes and Status
    • Life Style
    • Home Made Tips
    • Hair Care
    • Skin Care
    • Fantasy Tips
  • Tricks
    • Free Recharge
    • Free Internet
    • shopping Cashback
    • Recharge Cashback
  • Tech
  • Mobiles
  • Gadgets
  • News
  • How To's
  • Software
Breaking
  • How to Take Great Photos With Apple's iPhone X
  • Samsung Galaxy S9+ Review
  • Asus VivoBook 15 (X510UA) Review
  • Xiaomi Redmi 5 with 18:9 display
  • Vivo V9 with dual rear cameras
  • Xiaomi Redmi 5 launch
  • Vodafone partners with Tecno to offer Rs 2200 cashback
  • LG G7 with iPhone X-like notch
  • Oppo F7 India launch confirmed
  • Alcatel 1x with Android Oreo (Go edition) announced in India
  • Huawei P20, P20 Pro, P20 Lite price
  • Xiaomi MIUI 9 global stable ROM rolling out for all smartphones
  • Nokia 9 to sport iPhone X-like notch
  • Samsung Galaxy S9 passes scratch
  • Huawei Y9 2018 with four cameras, 4000mAh battery launched
  • OnePlus 5T gets Android 8.1 Oreo in open beta 4
  • Samsung Galaxy Note 9 won’t get under-display fingerprint scanner
  • Oppo F7, Mi Mix 2S, LG G7 and more
  • Oppo F7 with iPhone X-style notch to launch
  • Motorola could cancel Moto X5, layoffs hit Chicago office

Featured post

How to Take Great Photos With Apple's iPhone X

Recent Posts

Labels

  • Android Apk Files
  • Android Apps
  • Android Games
  • Apps Apk Files
  • Entertainment
  • Fantasy Tips
  • Gadgets
  • Hair Care
  • HomeMade Tips
  • How To's
  • News
  • Quotes
  • Quotes & Status
  • Recharge Cashback
  • Recharge Promo Codes
  • Shopping Cashback
  • Technology
  • skin care
Home / How To's / Why Do People Use the “echo” Command When Installing Software in Linux?

Why Do People Use the “echo” Command When Installing Software in Linux?

Latest Govt. Jobs 13:11:00 How To's Edit
why-do-people-use-the-echo-command-when-installing-software-in-linux-00
If you are new to using Linux, then many of the commands and variations thereof may seem a bit confusing. Take the “echo” command, for example. Why do people use it when installing software? Today’s SuperUser Q&A post has the answer to a new Linux user’s question.
Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

The Question

SuperUser reader PallavBakshi wants to know why people use the “echo” command when installing software in Linux:
I am new to the computing world. While installing ROS Indigo, the first step said that I should use the following code:
  • sudo sh -c ‘echo “deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main” > /etc/apt/sources.list.d/ros-latest.list’
Why do people use the “echo” command along with “sh -c” in this context? I have seen the “echo” command used in other installation processes as well.
Links I Looked Through
What Exactly is the “sh” Command?
Ubuntu Install of ROS Indigo
Why do people use the “echo” command when installing software in Linux?

The Answer

SuperUser contributor Fleet Command has the answer for us:
Ordinarily, the function of the “echo” command is to display a string (piece of text) on the console. But this time, a (greater than) > character is added after the echo command, redirecting its output to a text file located in /etc/apt/sources.list.d/ros-latest.list.
Basically, this whole command writes a piece of text to a text file. Now, here comes the tricky part:
The string written to the file may be different for each computer. The part, $(lsb_release -sc), is resolved (changed into something else) when the “echo” command runs.
You can open /etc/apt/sources.list.d/ros-latest.list in a text editor before and after the command to see the changes for yourself. Keep in mind that the file might not exist before using this command.

Have something to add to the explanation? Sound off in the comments.
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How to delete your Google search hi...

How to Get Free Internet on Idea An...

How to Use DroidVPN App For Free In...
Why Do People Use the “echo” Command When Installing Software in Linux? Why Do People Use the “echo” Command When Installing Software in Linux? Reviewed by Latest Govt. Jobs on 13:11:00 Rating: 5

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

TEST BOOK FOR GOVT ENTRANCE TEST

TEST BOOK FOR GOVT ENTRANCE TEST
Find All Latest book for preparation of SSC,RAILWAYBANK PO,RBI,BANK CLERK,GATE ME,GATE CE are available here in less prices, to check out the books click here

Translate

  • Popular Post
  • Random posts
  • Category

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & Earn Offer:  Hey Guys! Today I make an article about Teen Patti Referral ...
  • KingRoot 4.8.1 (136) APK Latest Version Download
    Download KingRoot Latest Version 4.8.1 In Tools by Developer KingRoot Studio ( 4.x / 5  average ...
  • 11 things you should understand approximately iOS 11
    Apple introduced the following version of its running system for the iPhone and iPad, iOS eleven ...
  • How to Upload Your Music Library to Google Play Music
    Google Play Music offers an unlimited music streaming subscription paired with YouTube Red ...
  • How to Disable Your Mac’s Touchpad When Another Mouse Is Connected
    Laptop trackpads can be annoying. Your palm hits them while you’re typing, moving your cursor ...
  • How to Gain Root Access of An Android Device via KingoRoot Software
    What Does Root Access Mean? Gaining root access of Android is the process of modifying the ...

Random Posts

  • 6 Teenage Flirting Moves We Should Continue as Adults
    6 Teenage Flirting Moves We Should Continue as Adults
    08.04.2016 - 0 Comments
    As you get older, the way you flirt changes. But there are some teenage flirting moves that will still work…
  • HTC smartphone with Snapdragon 625
    HTC smartphone with Snapdragon 625
    07.02.2018 - 0 Comments
    It shouldn’t take HTC long to publically announce the smartphone. (Image for representation) HTC is…
  • Try your hand at shooting sports in Shooting World Cup – SWC, the newly released smartphone game
    Try your hand at shooting sports in Shooting World Cup – SWC, the newly released smartphone game
    04.01.2017 - 0 Comments
    Top game shooters and Olympic medalists had been concerned within the development of capturing…
  • Top 5 Android Antivirus Apps for 2016
    Top 5 Android Antivirus Apps for 2016
    08.05.2016 - 0 Comments
    Android OS has the largest user base in the world of smartphones. This makes android the…
  • How To Check Messages On Youtube [GoAndroidAuthority]
    How To Check Messages On Youtube [GoAndroidAuthority]
    21.03.2016 - 0 Comments
    Youtube is the best video sharing site and one of the most searched engine. They are continuously…

Labels

Android Apk Files Android Apps Android Games Apps Apk Files Apps Hack Tricks Entertainment Free Internet Freecharge Gadgets Games Apk Files How To's Laptops Guide Mobiles Reviews Technology Viral's android zone free recharge

Entertainment

Tricks

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • Researchers trick 'CEO' email scammer into giving up identity
    Businesses ...
  • How to Gain Root Access of An Android Device via KingoRoot Software
    What Does Root ...
  • Tinyowl Freecharge Offer – Get 15% Cashback + extra 25% cashback using Freecharge [Ultimatez Tricks]
    Tinyowl Freecharge ...
  • How to Disable Your Mac’s Touchpad When Another Mouse Is Connected
    Laptop ...
  • Infocus Vision 3 review
    What happens when ...
  • EVGA redesigns its graphics cards following overheating concerns
    Following a ...

Random Posts

  • JOBS - Flipkart, Ola not recruiting from IITs this year
    JOBS - Flipkart, Ola not recruiting from IITs this year
    10.11.2016 - 0 Comments
    MUMBAI: Startups do not seem to be the flavour of this placement season. The Indian…
  • Sony resumes Android 7.0 Nougat update for Xperia Z5, Z3+ and Z4 Tablet
    Sony resumes Android 7.0 Nougat update for Xperia Z5, Z3+ and Z4 Tablet
    10.02.2017 - 0 Comments
    Sony commenced the rollout of the Nougat update for the Xperia Z5 family (Z5, Z5…
  •  Latest Huawei unveils Honor VR Camera, a clip-on 360-degree smartphone camera
    Latest Huawei unveils Honor VR Camera, a clip-on 360-degree smartphone camera
    23.02.2017 - 0 Comments
    Honor VR Camera can be attached to a smartphone’s USB port. Users will need to download the Insta360’s app…
  • latest Review: MacBook Pro 2017
    latest Review: MacBook Pro 2017
    17.02.2017 - 0 Comments
    VERDICT To say the new MacBook Pro is a massive improvement over the previous model would be an…
  • Whynot Motorola isn’t bringing mods to the Moto G5
    Whynot Motorola isn’t bringing mods to the Moto G5
    28.02.2017 - 0 Comments
    On its own, the Moto Z is but a thin, well-designed flagship smartphone. But withMoto…

Most Popular

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J ...
  • Top 5 Best SmartPhones under 7000 Rs (March 2017)
    Looking for the ...
  • Apple, IBM, Cisco are huge because of Indians, do not deny them H-1B visa: RBI Governor Urjit Patel
    ...
  • SAMSUNG GALAXY J7 (2016) Specifications
    SAMSUNG GALAXY J ...
  • BlackBerry Teases Marshmallow Beta Testing for Priv by Next Week
    Blackberry ...
  • LG Q6 Review
    LG Q6 Review
    2017 is ...

Contact Form

Name

Email *

Message *

Offers Zone

Created By Android Century Distributed by Android Century
  • Home
  • About us
  • Contact us
  • Privacy policy
  • Terms of use
  • Advertise here
Subscribe Via Email Subscribe To Android Century By Email And Get Free Updates. ;-)


Your email address is safe with us!