Find command for file larger than 200mb
find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
find . -size +20000k -exec du -h {} \;
Sort-------------------------
find / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -nk 2,2
sudo find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'
Tuesday, April 5, 2011
FTP,SCP command
ftp <remote hostname>
It will ask for Username and password of remote system
ftp> put <local to remote file>
ftp>get <remote to local file>
ft>bye (exit from ftp)
Goodbye message
SCP command
It will ask for Username and password of remote system
ftp> put <local to remote file>
ftp>get <remote to local file>
ft>bye (exit from ftp)
Goodbye message
SCP command
# scp user@machine:/path/to/remote/file /local/directory Example of a scp upload: # scp /local/file(s)/to/transfer user@machine:/remote/dir/to/transfer/to | |||||
Example scp user@machine:/path/to/remote/file /local/directory |
Subscribe to:
Posts (Atom)