Posts

Showing posts with the label linux Interview Q/A
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

what is the difference between rsync and scp in linux ?

RSYNC: 1.incrementanl data's 2.rsync will not be faster but data's integrity and If you repeat the copy, rsync may be faster as it only transfers differences in files. 3.rsync isn't necessarily encrypted and not more secure if want use rsync -avze ssh, then rsync would be as secure 4.Before a file is transferred rsync takes the checksums,After a file is transferred the receiver verifies the data integrity 5.rsync can also exclude certain subdirectories/files using the --exclude flag, scp can't do that. 6.-P flag which will display a progress 7. it automatically verifies if the transferred file has been transferred correctly. Scp will not do that, Example: Sending folder to remote location using rsync   # rsync -avzWe ssh --include 'R*' --exclude '*' --progress oracle@192.168.2.181:/home/oracle # rsync -avzWe ssh   --progress /home/oracle/database oracle@192.168.2.181:/home/oracle/ W-you can see the bandwidth SCP 1.Overwrite the data's 2.scp will be...

UNIX Interview Questions for Oracle DBAs

1) What’s the difference between soft link and hard link? Ans: A symbolic (soft) linked file and the targeted file can be located on the same or different file system while for a hard link they must be located on the same file system, because they share same inode number and an inode table is unique to a file system, both must be on the same file system. 2) How you will read a file from shell script? Ans: while read line do  echo $line done < file_name 3) 3. What’s the use of umask? ANS: Will decide the default permissions for files. 4) What is crontab and what are the arguments? Ans: The entries have the following elements: field             allowed values -----             -------------- minute            0-59 hour                0-23 day of month   1-31 month             1-12 day of week     0-7 (both 0...