Two questions to ask:
1. I am using scp command to copy a file from a remote server, I am wondering how can I specify the place where to paste the copied file on my local computer?
for example, if I wanna copy a test.txt file from a remote server and paste it on my local computer under /home/myname/tmp/ what is the proper command?
is it
scp SERVER_ADDRESS /home/myname/tmp/
2. If I want to search a file whose name contain text of “test” , what is the command I should use? I mean search for any file with name test , (‘_’ is a wildcard)
————————— update ————————
what is the difference between “find” and “grep”?
1:
2:
This will search for files/directories containing “test” anywhere in the filename. The search will start from the current directory
.To search in another path, usefind /path/ -name "*test*". If you only want to search in files, that is, exclude directories, then add-type fbefore the-nameoption.