There are multiple ways to copy file...
To Copy File From your system to remote system
$ scp -i key_file 'path to copy file' username@host_name:'target_location_to_paste'.
To Copy File from remote System to your system
$ scp -i key_file username@host_name:'target_location_to_copy' 'path to paste file'.
To Find id of a Process.
ps aux | grep 'name_of_software'
Eg: ps aux | grep tomcat
Note: remove ' 'quotations.
How to Find out Size of file in linux/unix environment,
There are multiple commands to do this...
To Copy File From your system to remote system
$ scp -i key_file 'path to copy file' username@host_name:'target_location_to_paste'.
To Copy File from remote System to your system
$ scp -i key_file username@host_name:'target_location_to_copy' 'path to paste file'.
To Find id of a Process.
ps aux | grep 'name_of_software'
Eg: ps aux | grep tomcat
Note: remove ' 'quotations.
How to Find out Size of file in linux/unix environment,
There are multiple commands to do this...
- ls
- du
- stat
Each one display result(size) in different way.
let see about ls command
If you want to to check size of a zip file
>$ ls -l filename.zip
-rw-rw-r--. 1 root root 24882 Oct 26 18:44 filename.zip
if you want to see some more user friendly response, then try with
$ ls -lh filename.zip
-rw-rw-r--. 1 root root 25K Oct 26 18:44 filename.zip
Now try with du command
>$ du -h filename.sql
3.8M filename.sql
and lastly see the output for stat command
>$ stat filename.sql
File: `filename.sql'
Size: 3902512 Blocks: 7624 IO Block: 4096 regular file
Device: ****/***** Inode: 23859810 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 500/ root) Gid: ( 500/ root)
Access: 2014-04-26 11:56:06.941036903 +0530
Modify: 2014-04-26 11:55:07.927037477 +0530
Change: 2014-04-26 11:56:04.802038739 +0530
File: `filename.sql'
Size: 3902512 Blocks: 7624 IO Block: 4096 regular file
Device: ****/***** Inode: 23859810 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 500/ root) Gid: ( 500/ root)
Access: 2014-04-26 11:56:06.941036903 +0530
Modify: 2014-04-26 11:55:07.927037477 +0530
Change: 2014-04-26 11:56:04.802038739 +0530
0 comments:
Post a Comment