10 Linux Commands For Beginners

Most Linux distributions include attractive graphical interfaces, but you can do a lot more from the command line interface once you know your way around.
For tasks like controlling and monitoring the distro's underlying system, the command line remains indispensable.



Using it, it's easy to configure and control everything from basic system setup, including network and boot, to graphical apps such as MPlayer.
Here are some commands that will elevate you from a total newbie to an informed command line user.
10 Linux Commands For Beginners

1. Monitor bootup
When you run into problems such as your graphics card not being detected or your network card not working, the bootup messages listed by dmesg are invaluable for helping you home in on the problem.
At the very least, they'll help you ascertain whether your Linux distro recognises the device attached to your machine. You can then probe these devices further with commands such as lspci and lsusb, depending on the port they're connected to.

2. Monitor system processes
Linux treats everything as a process. While you can use the top command to determine which process (or app) is using the most system resources, the ps command gives you much more information and can be used to control processes with precision.

3. Manipulate file permissions
For security, file permissions in Linux are divided into Users, Groups and Others. You can control the permissions assigned to users under each of these categories using the chmod command.
The permissions enable you to read, write or execute a file. This is handy when you want to run a script to install a package that isn't executable by default for security reasons.
The command chmod +x will make the script executable on your system.

4. Understand commands
The most useful tool for command line newbies is the man command, which provides a basic introduction to the various commands to help you understand their functions, and teaches you how best to use them.

When in doubt about which command to use, use the apropos command to search the man page descriptions for the specified keyword.

5. Manipulate archives
Linux offers many compression and archiving options other than good old ZIP. You'll often encounter Linux packages with '.tar', '.tar.gz' and '.tar.bz2' extensions. Try tar for a regular, uncompressed archive, while using gzip and bunzip2 will give you two different types of compressed archive.

6. Search on the CLI
When you can't remember where a particular config file is stored, or just want to search for a file, you can use either find or locate to determine where it is. While find traverses any specified directory, locate uses its updated database. Some commands are installed in non-standard directories, so use the whereis command to determine their installation directory.

7. Terminate processes
Linux apps sometimes fail to respond. If this happens, use the kill command to terminate the process. This requires the app's process ID, so you must use the ps command first to find this. You can then use this with kill to terminate the app.
For example, ps aux | grep firefox will give you the process ID for the Firefox browser (something like 18104), and kill 18104 will terminate it.

8. Root privileges
You'll often encounter these in tutorials. Only the root user has privileges allowing them to modify the system by installing or removing apps, configuring the network interface and so on. When you want to install an app as a normal user, you can use the sudo command to briefly acquire root user privileges.

9. Redirect output
While not a command, output redirection is an important skill to master when working on the command line. The tools required are the pipe (or |), and . These redirect output (normally printed on your screen) somewhere else, such as a text file or another app.
For example, the command ls | less redirects the output of the ls command onto less. Similarly, you can use the command ls > directory.txt to write the output of the ls command onto the 'directory.txt' file.
The redirection operative is used to write to the end of file.
10. Recall commands
You can use history to rerun a command. Entering this without any switches displays the history list with line numbers. You can also perform an incremental search of the history list.
Use [Ctrl]+[R] to perform a reverse search, or [Ctrl]+[S] for a forward search. As you type the first few letters, the last command from the history list that matches your string will be displayed.

31 comments:

  1. Hey there, You have done an excellent job.
    I will certainly digg it and personally recommend to my friends.
    I'm confident they'll be benefited from this site.


    Also visit my web-site; link clicker

    ReplyDelete
  2. Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you!
    By the way, how can we communicate?

    Visit my homepage :: miscrits of Volcano Island energy cheat

    ReplyDelete
  3. Awesome! Its actually awesome article, I have got much clear idea concerning from this post.


    Here is my web page earn cash for doing stuff you normally do on the internet

    ReplyDelete
  4. Fine way of telling, and good piece of writing to obtain
    facts on the topic of my presentation subject matter, which i am going to convey in institution of higher education.


    Stop by my homepage - my sex games

    ReplyDelete
  5. I will right away snatch your rss as I can't find your e-mail subscription link or e-newsletter service. Do you have any? Kindly allow me recognise in order that I may just subscribe. Thanks.

    My page :: rare miscrits

    ReplyDelete
  6. Wow, that's what I was seeking for, what a information! present here at this blog, thanks admin of this website.

    Take a look at my site: Funny Videos

    ReplyDelete
  7. Hi there to all, as I am really keen of reading this weblog's post to be updated daily. It contains nice stuff.

    Also visit my weblog: ptc money

    ReplyDelete
  8. Very nice post. I just stumbled upon your blog and wanted to say that I've really enjoyed surfing around your blog posts. In any case I will be subscribing to your feed and I hope you write again soon!

    my webpage; twitter password

    ReplyDelete
  9. Thanks in favor of sharing such a good thinking, article is good, thats why i have
    read it completely

    Also visit my website - lost password

    ReplyDelete
  10. Truly when someone doesn't know then its up to other viewers that they will assist, so here it occurs.

    Also visit my blog post ... free minecraft accounts

    ReplyDelete
  11. Appreciate the recommendation. Let me try it out.

    Also visit my web page: how to hack a twitter account

    ReplyDelete
  12. Informative article, exactly what I wanted to find.



    My webpage vintage dresses

    ReplyDelete
  13. Wow that was unusual. I just wrote an very long comment but after I
    clicked submit my comment didn't appear. Grrrr... well I'm not writing all
    that over again. Anyways, just wanted to say wonderful blog!


    My webpage :: medal of honour black ops

    ReplyDelete
  14. Just desire to say your article is as amazing. The clarity on your publish is simply excellent and i can think you're knowledgeable in this subject. Fine along with your permission let me to seize your feed to stay updated with coming near near post. Thank you a million and please keep up the enjoyable work.

    Also visit my page ... how do u get free gems on dragonvale

    ReplyDelete
  15. When I originally commented I clicked the "Notify me when new comments are added"
    checkbox and now each time a comment is added I get four emails with the same
    comment. Is there any way you can remove people from that
    service? Appreciate it!

    my web site: psn card generator

    ReplyDelete
  16. Simply wish to say your article is as surprising.
    The clearness in your post is simply spectacular and i could
    assume you are an expert on this subject.
    Well with your permission allow me to grab your feed to
    keep updated with forthcoming post. Thanks a million and please continue the gratifying work.


    my website :: hack dragonvale on iphone

    ReplyDelete
  17. This is a topic that is close to my heart... Take care!
    Where are your contact details though?

    My blog post; Hack Twitter Accounts Free Tool

    ReplyDelete
  18. Howdy! I could have sworn I've visited your blog before but after browsing through some of the posts I realized it's new to me.
    Anyhow, I'm definitely delighted I came across it and I'll be
    bookmarking it and checking back often!

    Here is my web blog; MineCraft Premium Generator

    ReplyDelete
  19. This program is intended to recover lost passwords for RAR/WinRAR archives of versions 2.
    xx and 3.xx. http://www.passwordrecoveryforrar.tk The free professional solution
    for recovering lost passwords to RAR and WinRAR archives.


    Hi there! This is kind of off topic but I need some help from an established blog.
    Is it very difficult to set up your own blog?

    I'm not very techincal but I can figure things out pretty quick. I'm thinking about creating my own but I'm not sure where to start. Do you have any tips or suggestions? Thanks

    My site :: RAR Password Revovery

    ReplyDelete
  20. I do not even know how I ended up here, but I thought this
    post was great. I do not know who you are but certainly you're going to a famous blogger if you are not already ;) Cheers!

    my weblog; Linkbucks Booster Tool 2013

    ReplyDelete
  21. This is really interesting, You're a very skilled blogger. I've joined your feed and look forward to seeking
    more of your magnificent post. Also, I've shared your web site in my social networks!

    My webpage; minecraft for free

    ReplyDelete
  22. Heya i am for the first time here. I came across this
    board and I find It really useful & it helped me out much.
    I hope to give something back and help others like you aided
    me.

    Here is my homepage: Cheat Code For Dragonvale

    ReplyDelete
  23. Aw, this was a very nice post. Finding the time and actual effort to generate a top
    notch article… but what can I say… I hesitate a lot and never seem to get anything
    done.

    Feel free to surf to my webpage; Minecraft Hacks

    ReplyDelete
  24. I have recently started a website, the info you offer on this website has helped me greatly.
    Thank you for all of your time & work. "The inner fire is the most important thing mankind possesses." by Edith Sodergran.


    Also visit my blog post ... 1.6 cheats

    ReplyDelete
  25. I visit every day some sites and sites to read content, however this website offers quality based writing.


    Feel free to visit my page - psn network card free

    ReplyDelete
  26. It's going to be finish of mine day, but before ending I am reading this fantastic post to improve my knowledge.

    Also visit my site - dragon vale passwords

    ReplyDelete
  27. I really like what you guys are usually up too.
    This type of clever work and reporting! Keep up the awesome works guys I've you guys to my personal blogroll.

    My webpage; cheat for castleville

    ReplyDelete
  28. Download All Recent Games, Movies, Apps, Mobile Stuff and
    everything else for free at http://consolegames4free.

    tk

    You can download from the following categories

    Full Version Applications for Android, iOS, MAC, Windows
    Full Version Games for Linux, MAC, PC, PS3, Wii, Wii U, XBOX360 and other systems
    Full Movies And Cinema Movies BDRiP, Cam, DVDRiP, DVDRiP Old,
    DVDSCR, HDRiP, R5, SCR, Staff Picks, Telecine, Telesync, Workprint
    Full Music Album MP3s and Music Videos Music, Albums, iTunes, MViD, Singles/EPs
    Full Version Ebooks eBook Magazines

    Download all you want for free at http://consolegames4free.
    tk

    ReplyDelete
  29. Free PDF Password Remover Tools http://www.pdfpasswordremover.

    tk - PDF Unlocker - Unlock Any Secured PDF File For Free. The best PDF Password
    Removal Software For Free Download

    Very good info. Lucky me I found your site by accident (stumbleupon).
    I have saved as a favorite for later!

    Here is my page ... web site

    ReplyDelete
  30. I really like it whenever people come together and share
    ideas. Great blog, keep it up!

    Feel free to surf to my page; angry birds for pc

    ReplyDelete
  31. If you want a Premium Minecraft Account check out this generator.
    With it you can generate a unique Minecraft Premium Account which no one else has!
    You can Download the Free Premium Minecraft Account Generator http:
    //www.MinecraftDownload4Free.tk

    I think that is among the so much significant information for me.

    And i'm satisfied reading your article. But wanna statement on some general things, The web site style is ideal, the articles is in point of fact nice : D. Good process, cheers

    ReplyDelete