netstat
To know which connections are established netstat
https://www.binarytides.com/linux-netstat-command-examples/
ps - eaf
----------------------------------------------------------------------------------
To copy a line from one file to other in vi (https://stackoverflow.com/questions/4620672/copy-and-paste-content-from-one-file-to-another-file-in-vi)
1. open file one with vi command
vi file1
2. copy the the line you want by pressing the key yy
3. Now to open another file from the first file use the below command
:e /path/secondfile
4. Navigate to the location in second file and for paste use the key p
5. Save the second file
----------------------------------------------------------------------------------
vi command
https://linuxize.com/post/how-to-copy-cut-paste-in-vim/
------------------------------------------------------------------------------------
less command
https://linuxize.com/post/less-command-in-linux/
b Move back one page
space bar or f Move forward one page
/pattern Search forward for matching patterns
?pattern Search backward for matching patterns
n Repeat previous search
N Repeat previous search in reverse direction
g Go to the first line in the file
Ng Go to the N-th line in the file
G Go to the last line in the file
------------------------------------------------------------------------------
tail command (this is used for populate the live content which is adding to the file)
https://linuxize.com/post/linux-tail-command/
------------------------------------------------------------------
To know which connections are established netstat
https://www.binarytides.com/linux-netstat-command-examples/
ps - eaf
----------------------------------------------------------------------------------
To copy a line from one file to other in vi (https://stackoverflow.com/questions/4620672/copy-and-paste-content-from-one-file-to-another-file-in-vi)
1. open file one with vi command
vi file1
2. copy the the line you want by pressing the key yy
3. Now to open another file from the first file use the below command
:e /path/secondfile
4. Navigate to the location in second file and for paste use the key p
5. Save the second file
----------------------------------------------------------------------------------
vi command
https://linuxize.com/post/how-to-copy-cut-paste-in-vim/
------------------------------------------------------------------------------------
less command
https://linuxize.com/post/less-command-in-linux/
b Move back one page
space bar or f Move forward one page
/pattern Search forward for matching patterns
?pattern Search backward for matching patterns
n Repeat previous search
N Repeat previous search in reverse direction
g Go to the first line in the file
Ng Go to the N-th line in the file
G Go to the last line in the file
h display help
q Exit less------------------------------------------------------------------------------
tail command (this is used for populate the live content which is adding to the file)
https://linuxize.com/post/linux-tail-command/
------------------------------------------------------------------
No comments:
Post a Comment