Today i spent arround 2 hours in digging log files in search of relevant logs to trace through the system behaviour to trouble shoot an issue....
Below are the things i learned,
Copy(YANK) Multiple Lines in VI editor
Below are the things i learned,
SCP(Secure Copy) the file from AMAZON EC2
syntax : scp <userName>@<hostName>:<remoteFilePath> <localfile>
scp ec2-user@staging2:/tmp/test1.out .
Copy(YANK) Multiple Lines in VI editor
- press Escape to go to VI mode
- press V will take to VISUAL mode
- select the text to copy(aka) yank
- press y.This will copy the contents to REGISTER(CLIPBOARD)
- To paste in same file
- Place the cursor in the place to copy
- press p will paste the contents already copied
- To paste in different file
- open the another file
- : o <filePath>
- In the another file press p to Paste
No comments:
Post a Comment