Close Menu
TechCentralTechCentral

    Subscribe to the newsletter

    Get the best South African technology news and analysis delivered to your e-mail inbox every morning.

    Facebook X (Twitter) YouTube LinkedIn
    WhatsApp Facebook X (Twitter) LinkedIn YouTube
    TechCentralTechCentral
    • News
      Vodacom targets satellite-to-phone service in South Africa next year

      Vodacom targets satellite-to-phone service in South Africa next year

      10 November 2026
      Vodacom eyes SA and Kenya for AI data centre hubs after Egypt - Shameel Joosub

      Vodacom eyes SA and Kenya for AI data centre hubs after Egypt

      10 November 2026
      Eskom chairman Mteto Nyati and energy minister Kgosientsho Ramokgopa speak to the media in Irene, Pretoria

      South Africa’s first new nuclear reactors could be online by 2036

      10 November 2026
      Comsol's 5G network pricing comes into view

      Comsol’s 5G network pricing comes into view

      10 November 2026
      Safaricom ruling tripped default clauses in Vodacom's loans

      Safaricom ruling tripped default clauses in Vodacom’s loans

      10 November 2026
    • World
      John Ternus faces first big test as Apple CEO - John Ternus

      John Ternus faces first big test as Apple CEO

      2 November 2026
      Alleged Israeli spy company heavily targeted Starlink users

      How online ads were used to hunt Starlink users

      28 October 2026
      Anthropic's IPO stands alone

      Anthropic’s IPO stands alone

      23 October 2026
      PHP flaws trigger global scramble as hackers pounce

      PHP flaws trigger global scramble as hackers pounce

      22 October 2026
      OpenAI turns the tables on Apple in trade secrets fight

      OpenAI turns the tables on Apple in trade secrets fight

      15 October 2026
    • In-depth
      Ducking hell: inside Apple's hidden list of words the iPhone won't suggest

      Ducking hell: inside Apple’s hidden list of words the iPhone won’t suggest

      6 November 2026
      Why investors are souring on Netflix

      Why investors are souring on Netflix

      22 October 2026

      10 days that changed the course of AI

      21 September 2026
      Meta to the AI industry: slow down without us - Mark Zuckerberg

      Meta to the AI industry: slow down without us

      16 September 2026
      Google DeepMind CEO Demis Hassabis. Image: John Sears

      The plan to stop AI from breaking the world

      16 July 2026
    • TCS
      TCS+ | Old Mutual's Celiwe Ross on leading people through AI - Old Mutual

      TCS+ | Old Mutual’s Celiwe Ross on leading people through AI

      6 November 2026
      TCS+ | How the Apple ecosystem drives productivity for SMEs - Sudesh Pillay iStore and Kevin McLennan

      TCS+ | How the Apple ecosystem drives productivity for SMEs

      6 November 2026
      TCS+ | Vox on AI, data rules and omnichannel communication for SMEs

      TCS+ | Vox on AI, data rules and omnichannel communication for SMEs

      26 October 2026
      TCS | The Cape Town firm quietly connecting Eskom, Pep and 6 000 ATMs - Réan van Niekerk, Metacom

      TCS | The Cape Town firm quietly connecting Eskom, Pep and 6 000 ATMs

      23 October 2026
      TCS+ | Boards are underestimating the cost of a cyberattack, says Arctic Wolf - Jason Oehley and Andre Den Hond

      TCS+ | Boards are underestimating the cost of a cyberattack, says Arctic Wolf

      22 October 2026
    • Opinion
      Icasa's Sim rules need a privacy backstop - Lloyd Matthew and Heinz Vollmer

      Icasa’s Sim rules need a privacy backstop

      5 November 2026
      AI's boardroom honeymoon is over - Gary Stocks

      AI’s boardroom honeymoon is over

      22 October 2026
      Before South Africa licenses Starlink, it should look at Ukraine - Duncan McLeod

      Before South Africa licenses Starlink, it should look at Ukraine

      21 October 2026
      Nonkqubela Thathakahle Jordan-Dyani

      Why cybersecurity is now a national security issue for South Africa

      15 October 2026
      When a machine can choose, who does it become? Fanie van Rooyen

      When a machine can choose, who does it become?

      9 October 2026
    • Company News
      • 1Stream
      • Africa Data Centres
      • AfriGIS
      • Altron Digital Business
      • Altron Document Solutions
      • Altron Group
      • Arctic Wolf
      • Ascent Technology
      • AvertITD
      • BBD
      • Braintree
      • CallMiner
      • CambriLearn
      • CM.com
      • Contactable
      • CYBER1 Solutions
      • Digicloud Africa
      • Digimune
      • Domains.co.za
      • ESET
      • Euphoria Telecom
      • HOSTAFRICA
      • Incredible Business
      • iONLINE
      • IQbusiness
      • Iris Network Systems
      • Kaspersky
      • LSD Open
      • Mitel
      • NEC XON
      • Netstar
      • Network Platforms
      • Next DLP
      • Ovations
      • Paracon
      • Paratus
      • Publishared
      • Q-KON
      • SevenC
      • SkyWire
      • Solid8 Technologies
      • Telit Cinterion
      • Telviva
      • Tenable
      • Vertiv
      • Videri Digital
      • Vodacom Business
      • Vox
      • Wipro
      • Workday
      • XLink
    • Sections
      • AI and machine learning
      • Banking
      • Broadcasting and media
      • Cloud services
      • Contact centres and CX
      • Cryptocurrencies
      • Education and skills
      • Electronics and hardware
      • Energy and sustainability
      • Enterprise software
      • Fintech and payments
      • HealthTech
      • Information security
      • Internet and connectivity
      • Internet of things
      • Investment
      • IT services
      • Lifestyle
      • Policy and regulation
      • Public sector
      • Retail and e-commerce
      • Satellite communications
      • Science
      • SMEs and start-ups
      • Social media
      • Talent and leadership
      • Telecoms
      • Watts & Wheels
    • Events
    • Advertise
    TechCentralTechCentral
    Home » Sections » Enterprise software » 10 steps to become a Linux samurai

    10 steps to become a Linux samurai

    By Nuno Martins6 August 2021
    Twitter LinkedIn Facebook WhatsApp Email Telegram Copy Link
    Get breaking news on WhatsApp

    The author, Red Hat’s Nuno Martins, says the world of Linux is a ‘deep rabbit hole’ – there is always something new to learn and discover

    The beauty of Linux is that it is made by programmers, for programmers. It can run on almost any hardware and there is an endless variety of distributions for almost every use case. It is preferred by programmers for its versatility, scalability, container portability, security, and many other features. Most importantly, it’s free and open source, which means that it’s built and supported by a community of developers who are always at the forefront of innovation and are willing to help each other out.

    Knowing a few useful command-line tricks can save you a lot of time and frustration. Some you may already know, and others may prove to be a hidden gem you weren’t aware of before. Either way, here are some of the essential command-line tips and tricks that could save you a couple of keystrokes.

    1. Back to basics

    Before we dive into the deep end with these command-line tips, let’s assume not all of us are experts, and make sure we’ve got the basics covered. When using the Linux command line, or “shell”, it’s important to keep in mind that all commands, files and directory names are case sensitive, and file extensions (such as .exe) are determined automatically by reading the file header.

    Another command that some people forget, while others use every minute, is “cd -” to return to your previous directory. This proves particularly useful when you end up down a long directory path, move to a completely different path and realise you need to go back. It’s also good to know that if you enter only “cd”, you’ll go straight to the home directory.

    Additionally, the “rm” command is widely used to delete files, but it does not delete them completely. After deletion, files can still be recovered using special software, so if you really value your personal data, you should use the shred command as follows: “shred ‐‐filename” and “shred ‐‐help” to see the available command options.

    2. The !!

    How many times have you run a long command only to find out that it requires root privileges, but you forgot to add “sudo” at the beginning? If you enter “sudo !!”, the command line will replace the “!!” with the last command you tried to run, and you’ll never have to type it all out again. The “sudo” command stands for “super user do” and it’s one of the most important commands in a Linux administrator’s arsenal.

    3. Run until success

    When you need to run a command until it succeeds, like pinging a server until it becomes available, you don’t have to type in “!!” every time. You can simply use a “while !” (while not) loop to achieve that. There are many ways to do it, but here’s a simple example: If you want to display the contents of “filename” until it becomes available, you can do it as follows:

    $ while ! cat filename
    do
    echo filename is not ready
    sleep 5
    done

    4. The reverse search

    Forgetting an exact command line after using it a few minutes or hours ago happens all the time, and finding it by scrolling through your history is less than optimal. The reverse search function is the answer. Press “Ctrl+R”, type a part of the command, and the reverse search will find the closest match in your recent history.

    5. The “no hang up” command

    Ending a terminal session will end any program you’re running on it. To prevent this and keep the program running in the background, you can use the “nohup” command. This command is also often used in combination with the “nice” command to run processes on a lower priority.

    6. Help is only a keystroke away

    Almost all Linux commands and command-line tools come with a help page that tells you how to use them. Most of you probably already know this, but it can be accessed simply by adding “shred ‐‐help” to the end of the command. What some of you may not know is that if you’re ever feeling lonely on a late-night coding session, you can also type in “echo “You can do it!” | cowsay” to spawn a Linux cow to motivate you!

    7. The editor to rule them all

    Apart from running commands in Linux, one of the most critical skills is to be able to edit configuration files and build scripts. The most important tool you will use for this is the ever-faithful text editor. Now, Linux has many choices but the one editor to rule them all is Vim. Learn it, it will make your life easier and allow you to be efficient when you are working in and around the configuration files and scripts that make up your systems.

    8. Get a basic understanding of security

    One thing we all do when we are learning is to try and find an easier way. You can look at the most popular distributions of Linux and they tend to be the ones which are easier to get started with. One serious component people forget about is basic security. We have all been there: Something doesn’t work and we change the permissions to allow all access, or we disable things like Selinux (Security Enhanced Linux). These components are just as critical to understand than learning the CLI tools. I’m not saying you need to be a security expert, but you should learn the basics about permissions, user accounts and best practices. This way you aren’t exposing yourself or your systems while you learn.

    9. Automation is the way forward

    Once you start to get comfortable with Linux and all its components, it’s important to start looking at things like Ansible. Ansible is an automation tool used in almost every component of modem IT infrastructure. Official certifications like Red Hat’s Certified Engineer actually require you to be able to automate a lot of the daily tasks you would do as a Linux professional. Ansible is simple, powerful and agentless, and it would definitely be a recommended skill to work on for any Linux ninja soon to be samurai.

    10. Official training

    Lastly, if there is one thing that you could do that would immediately give you more knowledge and grow your skills and understanding of Linux it would be to find some official courses. Now, I know many of you are saying, why get training when you can just Google? Training gives you the right way to do things, and it gives you the skills and recognition that future employers or clients will understand. Official certifications are a great way to test yourself and prove your Linux kung fu is strong enough.

    The platform of the future

    I hope that some of you have found these basic tips and tricks useful. The world of Linux is a deep rabbit hole and there is always something new to learn and discover — and using the right Linux platform can make everything much easier. Red Hat’s Enterprise Linux is the world’s leading enterprise Linux platform and provides more than just software and support. It gives programmers access to the resources, tools and technologies they need to write or reuse reliable software. If you haven’t joined the open-source movement yet, why not try it out for free?

    • Nuno Martins is senior solutions architect for sub-Saharan Africa at Red Hat
    • This promoted content was paid for by the party concerned
    Add TechCentral as a preferred source on GoogleFollow TechCentral on Google NewsGet breaking news on WhatsApp


    Nuno Martins Red Hat Red Hat Enterprise Linux RHEL
    WhatsApp YouTube
    Share. Facebook Twitter LinkedIn WhatsApp Telegram Email Copy Link
    Previous ArticleChina Merchants Bank wins a top award for Huawei ADN solution
    Next Article The hybrid workplace: What does it mean for cybersecurity?

    Related Posts

    LSD Open earns Red Hat automation specialisation

    LSD Open earns Red Hat automation specialisation

    31 August 2026
    Red Hat validates LSD Open for virtual machine migrations

    Red Hat validates LSD Open for virtual machine migrations

    26 August 2026
    Smarter.tech '26 shows why smarter technology begins with context - Obsidian Systems

    Context is the missing piece in enterprise AI: Obsidian

    31 July 2026
    Company News
    The hidden risks of fragmented IT and unenforced SLAs - ITC Systems Durban

    The hidden risks of fragmented IT and unenforced SLAs

    10 November 2026
    Why AI-powered customer experience will decide South Africa's festive retail winners - CM.com

    Why AI-powered customer experience will decide South Africa’s festive retail winners

    10 November 2026
    Traditional QA undermines modern customer experience - Martie de Beer, Telviva

    Traditional QA undermines modern customer experience

    10 November 2026
    Opinion
    Icasa's Sim rules need a privacy backstop - Lloyd Matthew and Heinz Vollmer

    Icasa’s Sim rules need a privacy backstop

    5 November 2026
    AI's boardroom honeymoon is over - Gary Stocks

    AI’s boardroom honeymoon is over

    22 October 2026
    Before South Africa licenses Starlink, it should look at Ukraine - Duncan McLeod

    Before South Africa licenses Starlink, it should look at Ukraine

    21 October 2026

    Subscribe to Updates

    Get the best South African technology news and analysis delivered to your e-mail inbox every morning.

    Latest Posts
    The hidden risks of fragmented IT and unenforced SLAs - ITC Systems Durban

    The hidden risks of fragmented IT and unenforced SLAs

    10 November 2026
    Why AI-powered customer experience will decide South Africa's festive retail winners - CM.com

    Why AI-powered customer experience will decide South Africa’s festive retail winners

    10 November 2026
    Vodacom targets satellite-to-phone service in South Africa next year

    Vodacom targets satellite-to-phone service in South Africa next year

    10 November 2026
    Vodacom eyes SA and Kenya for AI data centre hubs after Egypt - Shameel Joosub

    Vodacom eyes SA and Kenya for AI data centre hubs after Egypt

    10 November 2026
    © 2009 - 2026 NewsCentral Media
    Built and maintained by Chronon
    • Cookie policy (ZA)
    • TechCentral – privacy and Popia

    Type above and press Enter to search. Press Esc to cancel.

    Manage consent

    TechCentral uses cookies to enhance its offerings. Consenting to these technologies allows us to serve you better. Not consenting or withdrawing consent may adversely affect certain features and functions of the website.

    Functional Always active
    The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
    Preferences
    The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
    Statistics
    The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
    Marketing
    The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
    • Manage options
    • Manage services
    • Manage {vendor_count} vendors
    • Read more about these purposes
    View preferences
    • {title}
    • {title}
    • {title}
    🇿🇦 Sign up to the TechCentral newsletter