COMMANDS
scp — secure copy (remote file copy program)
scp — secure copy (remote file copy program)
Syntax:
scp <source> <destination>
To copy a file from B to A while logged into B:
scp /path/to/file username@a:/path/to/destination
To copy a file from B to A while logged into A:
scp username@b:/path/to/file /path/to/destination
grep
grep
grep 'word' filename
grep 'word' file1 file2 file3
grep 'string1 string2' filename
cat otherfile | grep 'something'
command | grep 'something'
command option1 | grep 'data'
grep --color 'data' fileName
-i ignore case
-r recursively
-h include file name
-w words only
-c count words
-n line number
-v invert match
-l file name only
--color force color
egrep -w "string1 | string2" file