Flash system caches:
$ echo 1 > /proc/sys/vm/drop_caches
$ echo 2 > /proc/sys/vm/drop_caches
$ echo 3 > /proc/sys/vm/drop_caches
Running programs and system memory used:
$ top
Check the server space:
$ df -h
$ du -sh
List the server files:
$ ll
$ ls -la
SSH connects to the Linux server with the server key:
$ ssh -i /key/path/name.pem [email protected]
Copy file to the server:
$ scp -i /key/path/file/name [email protected]:/server/path
Copy server file to local path:
$ scp -i [email protected]:/server/path/file/name /Users/name/local/file/path/
發表評論