Skip to main content

Top 5 take aways from "Linux 101 Hacks" - The Bloggers League 2022

 


Author: Rama Subrahmanyam


Hello, how are you doing..?

        We all know that Windows is a super cute-looking OS, but software people will connect to Linux; It offers much flexibility with file management, and plus, it's open-source too..!

        So, the book - Linux 101 Hacks, is a nice intro for beginners, by Ramesh Natarajan. Having said that, we look at the top 5 hacks from the book.


It is a free e-book, and you can download it here.

1. 'alias' for most used commands:-

    There will be commands that are used repeatedly, for which we can have a shortcut using an alias. For example, for cd commands, we can have 

        alias cd1="cd .."

        alias cd2="cd ../.."

        alias cd3="cd ../../.."

        alias cd4="cd ../../../.."

        alias cd5="cd ../../../../.."

*Put these in your .bashrc to save permanently.


2. 'ctrl-r' to search:-

    Pressing the up arrow till you reach that one previous command..? Yeah, it's painful. ctrl-r referred to as "reverse search" will be of help.

    First, press ctrl-r and then enter any part of the previous command. It gives you the last command which had that part.


3. 'diff' to know the difference:-

    The difference between given files can be found easily with this command. Just do:

    diff file1 file2

You will at least know whether both files are the same or not. As said in the book, "the output is not straightforward."


4. 'HISTCONTROL' to remove duplicates in history:-

    Yeah, everyone has a history of repeating the same command even though we know it won't work... (are you still doing this?)

    But this makes our history store multiple copies of the same command. Just add an environment variable called HISTCONTROL:-

        HISTCONTROL='ignoredups'

     You can even export this variable (export HISTCONTROL='ignoredups'), and continue to immerse in the sea of repeated commands ;)

*Put it in your .bashrc to save permanently.


5. 'Vim' - a classic editor:-

    Nope, it is not the dish soap - Vim is a famous editor, for sure it'll become your favorite one, once you know how it works.

    You will know the basics of vim when you enter the following command:- 

    vimtutor

    The commands, some intuitive, some weird, some tough-to-remember, all will be there; but once you adapt to them, you will feel good, or even better...


Thank you for reading, so, yeah these are the top 5 picks from the book, and of course, there are many others, like:-

       disk management, installing and removing packages, customizing your command line, etc. Of course, it is a book of 101 hacks...


Have you read the book already? Or do you come across any super-cool technical books, don't forget to share about them in comments and help us reach 'the Eternal thing'..!

This article is written as a part of The Bloggers League conducted by Vidhya Thakkar Neelam Sharma and Siddhi Palande powered by Penguin IndiaDreamland Publications and Acclidesign should not be repurposed, republished or used otherwise. The content herein is owned by the blogger. Hosts are not responsible for any infringement caused.”

Comments

  1. These hacks are very interesting to know. This book looks very insightful as well. Thanks for sharing the hacks as well as the link to the book.

    ReplyDelete
  2. Hey thanks for this I didn’t know how much I needed this post until I read it

    ReplyDelete
  3. Wow this is so detailed and well presented.

    ReplyDelete
  4. Thank you for these interesting tips

    ReplyDelete
  5. Wow thanks for this blog. Sounds interesting!

    ReplyDelete
  6. I loved working on Linux in college. I had the opportunity to work on it again for a project at work, and it is one of my most favorite projects ever.

    ReplyDelete

Post a Comment

Popular posts from this blog

25 and Disappointed: Can’t we choose simple life?

 There’s something strange about the way we live now. It’s not enough to do your job. You have to grow. Climb. Upskill. Network. Earn more. Spend more. Repeat. People areound you - even the ones who seem tired - still say, “Keep pushing.” The ones ahead keep reaching higher. The ones behind are told to catch up. And if you stand still for even a moment, they say you’re wasting time. But no one explains why. Why is a peace a problem? Why is being satisfied with what you have seen as a failure? This idea of “simple life” - it used to be normal. Work. Come home. Cook. Be with the people you love. Rest. Now it’s rare. Or romanticized. Or quietly looked down on. We’re told that success means constant movement. That we need to hustle, or we’ll be left behind.  But behind what, really? We’ve normalized the rat race, without asking who started it. And the truth is - only a few can actuallly win it. Most people burn out trying.  Others fake their way through it, smiling through st...

25 and Disappointed: The tragedy of leaving home

It’s strange, isn’t it? We live in a world with high-speed internet, 5G, instant messages, Zoom calls and flight tickets that can take us across the country in a few hours. The world has never been more connected. And yet… we’re all so far apart. We are becoming disabled in this tech enabled world. People move away from home more than ever. To study. To work. To “build a future.” Yes, it’s needed sometimes. For learning. For exposure.  But often… it seems we are allowing it quietly more than required. Maybe it’s just the system forcing us to. All the jobs are in cities. All the money, infrastructure and “opportunities”. Hence we leave. We leave behind warm meals, evening walks with parents, familiar lanes and families that actually feel like festivals. We leave people who raised us - and see them only on phone calls or during a short visit squeezed between deadlines. For what? For a cubicle in a crowded city, A rented flat that never feels like home, Weekends that vanish in chores,...

Bye-bye strict timetables...! - The Bloggers League 2022

     Author: Rama Subrahmanyam (ramasubrahmanyam.m@gmail.com) When we are planning for multi-tasking, we divide our time and allocate it for each task. That is a great thing, as it gives a chance for incremental growth, eventually getting compounded...      Scheduling makes us punctual; sometimes forces us to be punctual if someone is counting on us, say an examination, office meeting, so on...      Besides strict things, some activities should happen at planned times, like sports, gym, etc. But, we still have things, that can be done in our free time - say reading books, solving puzzles, or learning something of our passion. Should we also maintain the timetable in those cases...? Well, may not be that necessary... We get used to a task at the same time if we have a strict timetable; In a way, can also affect our peace... Suppose due to urgent work, we missed a task      -  We may develop a bad feeling,    ...