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
Loading...

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 / 5 terminal commands every Linux newbie should know

5 terminal commands every Linux newbie should know

Latest Govt. Jobs 00:08:00 How To's Edit
linux tux mascot logo

I’m a big fan of the anime series Neon Genesis Evangelion. One of the quotes from it that stands out in my head is, “Man fears the darkness, and so he scrapes away at the edges of it with fire.” For newcomers to the world of Linux, the black screen of the terminal can seem like a deep, foreboding darkness, which is desperately replaced by a GUI whenever possible. It doesn’t have to be that way.
A graphical user interface makes modern computing more enjoyable and easier to use the majority of the time. After all, placing an Amazon order using a text-mode browser in a terminal sounds like an over-enthusiastic exercise in masochism. We like our GUIs and graphical browsers, but there are times when you’ll find yourself in the world of the command line. Like any new tool, knowing a few basics can keep your blood pressure in check when a GUI fails to start, or you need to perform maintenance.
For starters, here are five commands you should become comfortable with as a Linux user.
[ Further reading: 4 Linux projects for newbies and intermediate users ]

1. sudo

If there is one command that should be treated with equal parts certainty and respect, it’s sudo. Sudo’s effect is quite simple: It runs any command that follows it with superuser (or root) privileges. Running commands with sudo is necessary when doing things like updating the system or changing configuration files.
sudo in action
Since /mnt is owned by root, you have to use sudo to create a directory in /mnt.
Sudo also gives the user the power to destroy a system or violate the privacy of other users. This is why you’ll see the following lecture the first time you use sudo on a system:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

1)Respect the privacy of others.
2)Think before you type.
3)With great power comes great responsibility.
If you’re looking to edit or change any file that’s outside of your user’s home directory, there’s a good chance you’ll have to use sudo to do it. To be able to use sudo, your user needs to be in the sudoers file or part of a superuser group (usually “wheel” or “sudo”). Ubuntu offers a great guide on the sudoers file.
sudoers file
A look at a typical sudoers file, where the groups that allow root access are specified. It is very unwise to allow sudo access to a user or group without requiring a password.
Since sudo carries so much power, it goes without saying that you should not type it before a command if you don’t know what the command does. There’s an old prank online that instructs newbies to type sudo rm -R /. (Don’t do this.) The command recursively deletes every file on your system, and your OS will happily do it without further prompting. As the lecture file says, when using sudo, “think before you type.”

2. Your package manager tools (yum, apt, or pacman)

The number one reason you’ll be using sudo is to add or remove programs from your PC via your package manager. Although the three major package managers I mention here all differ in their respective command arguments and grammar, they are all capable of the same three basic functions: installing a package, removing a package, and upgrading all the packages on the system. (Note: Unless you’re logged in as root, you will need to prepend these commands with sudo.)
sudo pacman -Syu
A system upgrade using pacman on Arch Linux. Note the use of sudo before the pacman command.

yum (Red Hat/Fedora/CentOS)

Install a package:
yum install <package>
Remove a package:
yum remove <package>
Upgrade the system:
yum update

apt (Debian/Ubuntu/Mint)

Install a package:
apt install <package>
Remove a package:
apt remove <package>
Upgrade system:
apt update
apt upgrade

pacman (Arch/Manjaro)

Install a package:
pacman -S <package>
Remove a package:
pacman -R <package>
Upgrade the system:
pacman -Syu
All of these package managers have many more features than what I’ve listed here, but these three functions are what you’ll use most of the time. Whatever Linux distribution you choose, you should be comfortable with the package manager, and know where to find its documentation.

3. systemctl (Systemd)

For the longest time, background programs called daemons were started using a series of scripts called initscripts. For newcomers, initscripts were hard to read and interpret or change. More recently, initscripts have been replaced by a service management application called Systemd. If you’re running a recent Linux distribution, there’s a good chance that Systemd is starting the services you need.
systemctl enable NetworkManager
Disabling and re-enabling the NetworkManager service to run at boot time.
One of the chief complaints about Systemd is that it can do too much. (Unix programs usually aim to do one thing, and one thing very well.) However, there are five keywords you should consider with systemd.
To start a service, simply use the start keyword:
systemctl start <service name>
Similarly, you can restart a service if it has failed, or if its configuration has changed:
systemctl restart <service name>
To stop a service, use stop:
systemctl stop <service name>
To enable the service at boot, you can use the enable keyword:
systemctl enable <service name>
And finally, you can disable a service to keep it from starting at boot:
systemctl disable <service name>

4. ls

The ls command is simple and straightforward, but it is more useful than one might think. The ls command lists the files and folders in a given path. By default, it lists the files and folders in the current working directory (usually the user’s home). You can find the contents of a given path too.
ls example
There are several options to ls, but the most common to use is -l, which shows file permissions and ownership.
So what makes this Linuxy-version of the Windows dir so useful? Well, for one you can look in subdirectories for configuration files. It’s also helpful for looking for file names in an environment without a GUI. Since Linux filenames and commands are case-sensitive, it’s handy to know exactly how something is spelled. In short, think of ls as your scout that you can use to peek around the system.

5. man

Sometimes you need help. Sometimes you need help and you don’t have access to the internet. Those are dark times. In those situations, man can save your butt.
The command man is short for manual, and provides “online” (stored on your computer) access to command documentation. If you need reminding about what chmod does, you can simply type in man chmod into your terminal to read about the command. You can scroll up and down in the man page by using the arrow keys or PgUp and PgDn keys. When you’re done reading, hit Q to quit.
man ls
The manual page for ls.
Though man can be useful when an internet connection isn’t available, Google is a much better resources when you actually are online. It’s worth noting that the first few Google results you’ll get for a given command like chmod will be a web version of the man page.

Wrapping up

There are many, many more commands to learn, but dipping your toes into the world of text-mode commands can help you understand your system better and make it a bit less scary. While there are lots of ways to accomplish things in a graphical desktop, console commands are still the fastest way to update your system.
Console commands also have the added benefit of showing errors when things go wrong. That means when an update fails, you can generally tell if something was wrong with the package, or if you simply didn’t have an internet connection.
With a bit of practice, anyone can start banging out terminal commands with confidence and the skillful use of sudo.
For more information on Linux commands, there is a great cheat sheet at
Pixelbeat.org.
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How to HACK Google Play Music App

How to get BookMyShow Instant Disco...

How To Get Free Recharge And Money ...
5 terminal commands every Linux newbie should know 5 terminal commands every Linux newbie should know Reviewed by Latest Govt. Jobs on 00:08: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 ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Fitbit Zip 2017 review
    Fitbit PROS: Clever, accurate tracking Expandable online service Integration with 3rd ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...

Random Posts

  • Acer Switch 7 Black Edition, Swift 5, Spin 5 notebooks launched
    Acer Switch 7 Black Edition, Swift 5, Spin 5 notebooks launched
    24.09.2017 - 0 Comments
    Acer unveiled Swift 5, Spin 5 and Switch 7 Black Edition convertible Windows 10 notebooks at IFA…
  • Top Best laptops for photographers
    Top Best laptops for photographers
    20.02.2017 - 0 Comments
    PAGE 1 OF 2: Apple,, Microsoft and AsusPAGE 2 OF 2: Chillblast, Dell and LenovoAll A decent…
  • Moto 360 Review: Moto 360 Has Priced SLASHED In Google Play
    Moto 360 Review: Moto 360 Has Priced SLASHED In Google Play
    12.02.2017 - 0 Comments
    It's now been over a year since Google took the wraps off its first bid for the wearable operating system…
  • UPCOMING MOBILE (XIAOMI MI NOTE 2 128GB)
    UPCOMING MOBILE (XIAOMI MI NOTE 2 128GB)
    09.11.2016 - 0 Comments
    SUMMARY The Xiaomi Mi Note 2 128GB mobile features a display and has 4070 mAh battery and…
  • YU Yureka Black to head on sale once more on June 19 at 12 midday at Flipkart
    YU Yureka Black to head on sale once more on June 19 at 12 midday at Flipkart
    15.06.2017 - 0 Comments
    YU Yureka Black will be up for grabs on June 19 at 12 noon on Flipkart. Micromax’s on-line-simplest YU…

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 & ...
  • Taotronics TT-BH22 Headphones Review
    We make it a ...
  • Bank wallets growing faster than e-wallets
    In the  bank ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on ...
  • Fitbit Zip 2017 review
    Fitbit PROS ...

Random Posts

  • XnRetro Download of the day
    XnRetro Download of the day
    08.04.2017 - 0 Comments
    XnRetro XnRetro is a fun and easy way to give ordinary photos an old-school twist. This is no…
  • Here is you can  Install Full Version of Minecraft in a Linux PC
    Here is you can Install Full Version of Minecraft in a Linux PC
    26.01.2018 - 0 Comments
    Minecraft is one of the biggest games in the world, with a massive following. While there is a…
  • 4 of the pleasant windows 10 app launchers for growing your productiveness
    4 of the pleasant windows 10 app launchers for growing your productiveness
    24.03.2017 - 0 Comments
    You might think an app launcher is a frivolous addition to your Windows desktop, but this tool offers…
  • Your smartphone is the key to democracy
    Your smartphone is the key to democracy
    28.01.2017 - 0 Comments
    Get involved and stay informed. The device that's already in your pocket is all you need. Here's the deal:…
  • Up to Rs 300 Cashback on KOMITLA BUS Ticket Booking
    Up to Rs 300 Cashback on KOMITLA BUS Ticket Booking
    24.02.2018 - 0 Comments
     Promocode: KOMITLA300  Terms & Conditions: Get 10% Cashback up to ₹300 on bus ticket…

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!