![]() ![]() unix shell script for loop exampleĪwk command in Unix : Awk command in Unix or Linux is a powerful command for processing text. Unix shell script for loop example : what is loop statement in Unix shell scripting,what are different type of statement with examples. Complete description is given for each of the command Sed command in unix examples : sed command is a Stream Editor – works as a filter processing input line by line And here are 32 Useful sed command examples in Linux/Unixīasic unix command :Unix Script Tutorial for basic unix command which are used many times. Same are applicable for Linux also.How to kill the process Linux command for Oracle DBA : This page has useful Unix command for Oracle DBA to help you in your day-to-day activities. By default, tar will preserve file permissions and ownership when creating the archive. Unzip tar.gz file in Linux : Check out this post on how to create ,list and unzip Tar.gz file in Linux, how to use bzip2 compression, how to compress and extract using other options I have to compress a directory using tar.gz preserving not only permissions, but ownership/groups too. So basically you can create jdk directory in any folder by this approach while by first approach,it will always created in /home/oracle/ It create a tar file of jdk and its all inside directory in the current directly where the command is executed Now if you take the tar backup like this cd /home/oracle/ Then It will create file in the same relative path It create a tar file of/home/oracle/jdk and its all inside directory in the current directly where the command is executed (1) The relative path is important while extracting file from tarĮxample tar -cvf user_dir.tar /home/oracle/jdk ![]() Tar rvf host_dir.tar new.txttar rvf host_dir.tar new/įew important things to note down for tar command line Extract a single directory from tar tar -xvf user_dir.tar /home/oracle/network/admin/ħ.Extract group of files from tar using regular expression tar -xvf oracle_hom.tar -wildcards '*.ora'Ĩ. Adding a file or directory to an existing archive using option -r To extract files from tar file: $tar -xvf user_dir.tarĤ.To tar files as per include options: $tar -cvf user_dir.tar -I list_of_filesĥ. Extract a single file from tar tar -xvf user_dir.tar /home/oracle/network/admin/tnsnames.oraĦ. Lists the contents of the tar file created. Using the tar Command to Create an Archive of Your Home Directory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |