Рет қаралды 21,683
#mprashant #linux #linux_tips_tricks
Linux Tips and Tricks in Hindi
00:00 Intro
00:25 Case1 - Tab for autocompletion
01:40 Case2 - How to switch to last working dir
02:24 Case3 - Running multiple commands in single line
02:53 Case4 - How to read big/large files
04:15 Case5 - Empty a file without deleting it
05:21 Case6 - Live monitoring of messages from a file using tail -f
08:14 Case7 - How to record all the commands executed on terminal in a file
11:00 Case8 - How to use calculator in linux
11:50 Case9 - How to move cursor to start or end of a command
12:43 Case10 - Shortcut to clear terminal and redo
13:42 Case11 - How to revers search for a command executed in past
14:51 Case12 - Shortcut to clear the screen in Linux
15:16 Case13 - Delete one character from starting
15:40 Case14 - Shortcut to switch to Home directory
16:58 Case15 - History command in Linux
-------------------------------------------------------------------------------------------------------------
ubuntu tips and tricks
Linux shortcuts
linux tips
15 linux tips and tricks
linux tricks
bash history
command history
linux terminal
linux commands for beginners
-----------------------------------------------------------------------------
Hello dosto,
In this video I have covered 15 Linux Tips, Tricks and Shortcuts which is very useful for our day to day task.
Below are the 15 cases/examples I have covered in this video
Case1:
Tab for autocompletion
Suppose you want to go to directory cd /home/paul/tutorials
we can use Tab for autocompletion which will speed up your task and reduce chances of error
Case2:
Switch to the last working directory cd -
cd /etc/nginx
Case3:
Running multiple commands in one line using ;
$command1; command2; command3
Example: whoami; pwd;
Command1 && Command2 (2 will run only if 1 was successful)
Case4:
To read big files cat is not a good option, better to use less
cat csv
less csv, we can easily search and navigate, go to top and end of the file
Case5:
Empty a file without deleting it: filename
testfile
If we need to empty this file we can use the above method
Case6
tail -f | grep "error" for live monitoring file with given text
we can give example with sudo tail -f
Case7
To record all the commands executed in a script
$script - then perform all the tasks - Ctrl+D to stop the script
If your trainer, boss, collegue teach you a process then we can record it using this
Case8
Terminal as calculator
bc -l
Case9
Ctrl + a: to move cursor to the start
Ctrl + e: to move the cursor to end
Case10
Ctrl + u: To clear the terminal
Ctrl + y: To redo commands in the terminal
Case11
Ctrl + r: Reverse search for the commands we ever used
Case12
Ctrl + l: Clear screen
Case13
Ctrl + d: To delete one character at a time from starting (opp of backspace)
Case14
cd ~ :Switch the path to home directory
Case15
history command to see all the commands executed frequently
-----------------------------------------------------------------------------------------------------------
linux tricks
tips and tricks
16 linux tips and tricks
linux tips and tricks
ubuntu tips and tricks
linux tips
things you didnt know
top 3 linux tips
linux short cuts
linux tips you must know
tips and tricks for linux
Learn Linux
command-line tricks
15 examples
linux commands for beginners
linux terminal
linux command line tutorial
history
command history
bash history
15 Linux Tips
Tricks & Shortcut To Make Your Work Life Easier and Being More Productive