Mac or Linux terminal Shortcuts to boost your productivity

Linux Terminal Shortcuts

Removing char by char either by pressing the backspace button or the delete button in the terminal is such a pain. Please do not do that!!! instead follow these easy shortcuts,
  1. Do not press backspace chars by chars to type the next command or remove all the chars/bigCommands.
    1. Press Ctrl + U to delete the complete line
  2. Do not press delete chars by chars to delete all right-side chars, instead,
    1. Press Ctrl + K to delete all the chars coming after the cursor
  3. Move the cursor start of the line,
    1. Press Ctrl + A
  4. Move the cursor end of the line,
    1. Press Ctrl + E

Additional useful commands,
If you know you have to execute a sequence of commands in advance then instead of typing multiple commands one by one, you can follow these,
  1. Execute multiple commands together does not matter if any one of them is failing,
        git add. ; git commit -m "Add this"; git push

                    It would execute push even commit fails, it does not respect chaining.
  1. Execute multiple commands together in the chain, if one command fails then it will stop executing the next command in the chain,
                    git add . && git commit -m "Add work" && git push 

                    Here if the commit fails then it won't attempt to push the changes.



Hemant Singh Bisht

With over 9 years of software development experience, I've dedicated my career to creating scalable cloud solutions for B2B and B2C. Currently, I am leading a Scrum team of highly efficient engineers. As a Full Stack developer, I possess a comprehensive skill set spanning both front-end and back-end technologies. My strong foundation in software engineering and extensive hands-on experience equip me with a diverse skill set covering the entire software development lifecycle. From Epics Grooming to Release and beyond, I take pride in designing and delivering high-quality solutions that meet business objectives. Collaborating closely with cross-functional teams and stakeholders. One of my key strengths is successfully delivering epics from design to deployment, consistently meeting deadlines, and exceeding customer expectations. I am passionate about leveraging technology to create meaningful change and continually seek opportunities to apply my skills to projects that have a positive societal impact.

Post a Comment

Previous Post Next Post