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 delete your Google search hi...

How to Get Free Internet on Idea An...

How to Use DroidVPN App For Free In...
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 ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows 10 Creators Update is here, now—yes,  now —but not (officially) on the PC. The ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...
  • 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 ...

Random Posts

  • OnePlus 5T Review
    OnePlus 5T Review
    19.01.2018 - 0 Comments
    If the OnePlus 5T isn't a “flagship killer,” it's at least a "flagship bruiser." It’s remarkable how much…
  • New upcoming  iPhone 8 could get a new name
    New upcoming iPhone 8 could get a new name
    10.03.2017 - 0 Comments
    Most rumors seem to agree now that alongside an iPhone 7S and iPhone 7S Plus –…
  • Samsung Galaxy On Max Review
    Samsung Galaxy On Max Review
    28.10.2017 - 0 Comments
    Samsung has been positioning itself as the brand of masses for all over these years. It has a great…
  • Sony launches new In-car audio system with Android Auto & CarPlay support
    Sony launches new In-car audio system with Android Auto & CarPlay support
    16.01.2017 - 0 Comments
    NEW  DELHI:  Sony has  announced its XAV- AX100 In-car audio system for car…
  • Apple hits record high but leaves some investors in dust
    Apple hits record high but leaves some investors in dust
    14.02.2017 - 0 Comments
    Apple shares cruised to a record-high close Monday, helping catapult the S&P 500 stock index…

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 & ...
  • Steam Now Supports PS4's DualShock 4 Controller
    HIGHLIGHTS ...
  • Lenovo Yoga Book launched in India at Rs 49,990: First Impressions
    Lenovo  has ...
  • This $15 stand turns your Apple Watch into a mini Macintosh
    For all those  ...
  • Grow Hair Faster: How to Make Hair Grow Faster Naturally
    Every woman wants ...
  • MobiKwik - Update E-KYC & Get Rs. 100 Supercash
    MobiKwik - Update E-KYC & Get Rs. 100 Supercash
    Mobikwik - Update ...
  • Fitbit Flex 2017 review
    Fitbit PROS ...

Random Posts

  • New Dell XPS 15 Leaks With Quad Core Kaby Lake, GTX 1050 GPU
    New Dell XPS 15 Leaks With Quad Core Kaby Lake, GTX 1050 GPU
    03.01.2017 - 0 Comments
    There may be a developing quantity of MacBook pro strength customers available searching at the 2016 contact…
  • Huawei Confirms It Refused to Manufacture Google Pixel Due to Lack of Branding
    Huawei Confirms It Refused to Manufacture Google Pixel Due to Lack of Branding
    15.11.2016 - 0 Comments
    HIGHLIGHTS Huawei manufactured Google's Nexus 6P smartphone HTC eventually manufactured Pixel…
  • Google's 'new and improved' Contributor program is accepting early sign-ups
    Google's 'new and improved' Contributor program is accepting early sign-ups
    28.01.2017 - 0 Comments
    Welcome back, Contributor. Sort of. As Google promised when the original Contributor program…
  • Nexus 10 Review: Bigger. Better. Faster. Stronger.
    Nexus 10 Review: Bigger. Better. Faster. Stronger.
    12.02.2017 - 0 Comments
    The Nexus 10 is now a member of Google's old guard; the tablet is still officially…
  • How to use page zoom settings in Chrome
    How to use page zoom settings in Chrome
    29.03.2017 - 0 Comments
    You can easily adjust the way your screen looks with Chrome. Chrome makes surfing the web easier in a…

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!