In this post I'm giving few Linux CLI tips/shortcuts which i found very helpful and increase your speed while you are working on Linux using CLI. These tricks are very useful for those who are new to Linux.
- 'CTL+L' - Clear screen. (you can use 'clear' also to clear the screen).
- 'CTL+R' - Search recent commands from History.
- 'CTL+A' - Take the cursor to the start of current command.
- 'CTL+E' - Take the cursor to the end of currnet command.
- 'CTL+W' - To erase one word in current command.
- 'CTL+U' - To erase whole command.
- 'CTL+Y' - To type the above command which was erased by 'CTL+U'.
- 'CTL+D' - Exit or logout current session.
- 'screen' - run multiple session inside a single session. 'CTL+A' then 'N' to go to next session and 'CTL+A' then 'P' to go to previous session.
- 'CTL+C' - To halt current command
- 'CTL+Z' - Stop current command
- '!!' - Repeat previous command
I have always used the arrow keys to go to the start and end of the linux commands. Now i now easy way to move the cursor. Thanks a lot for posting this
ReplyDeleteGrep Command
Very Useful information, this is both good reading for, have quite a few good key points and I learn some new stuff from it too
ReplyDelete