Midterm Flashcards
copy file from personal PC to Matrix
scp filename server@matrix.senecacollege.ca:~/
Copy directory from PC to matrix
scp -r ~/dir server@matrix.senecacollege.ca:~/
List files and convert size to KB
ls -lh
Find a file
Find a file and export path to new file
find -iname “filename”
find -iname “filename” > filename2
Translate all lowercase letters to uppercase
Translate all commas to periods
tr “a-z” “A-Z” filename
tr “,” “.” filename
cut and display words separated by a comma in a file
cut -d’,’ filename -f2,4,6
cut and display words + translate commas to tab
cut -d’,’ filename -f2,4,6 | tr “,” “\t”
sort file numerically
sort -n filename
sort file backwards
sort -nr filename
sort file randomly
sort -R filename
search for word inside a file
grep “keyword” filename
Enter matrix server from PC
sftp server@matrix.senecacollege.ca
view files on server
view files on pc while on server
ls
!ls
download file from server to pc
get filename
upload file from pc to remote server
put song.mp3