Skip to main content

Posts

Showing posts with the label Advance Unix Command

Advance Unix Command Part 2 #DOTC_Mdb

Advance Unix Command Part 2. Hello Everyone, In my Previous blogs I already discussed about several commands which commonly used in Unix . Today I will discuss some more command which commonly used in Unix . Before starting new commands I will suggest you to please go through my below blogs for Unix command . https://dheeraj60.blogspot.com/2020/08/advance-unix-command-part1-dotcmdb.html https://dheeraj60.blogspot.com/2020/08/basic-and-some-advance-command-in-unix.html https://dheeraj60.blogspot.com/2020/08/basic-and-commonly-used-command-in-unix.html   Let’s start with Unix command : Connect to a remote mysql database. Below is the command to connect remote mysql database as well as local mysql database. Note : You should first now the host name to connect mysql database as well as password. $ mysql -u u255474504_root -p -h 127.0.0.1 Connect to a local mysql database. $ mysql -u   u255474504_root –p Below is the output of above command in putty Terminal.   H...

Advance Unix Command Part1 #DOTC_Mdb

  Advance Unix Command Part1 .   Hello Everyone, In Previous blogs I discussed about basic Unix command which is commonly used. Today I will discuss some advance command of Unix which is mostly used in organization.   Please see my below blogs related to Basic Unix command for your reference. https://dheeraj60.blogspot.com/2020/08/basic-and-some-advance-command-in-unix.html https://dheeraj60.blogspot.com/2020/08/basic-and-commonly-used-command-in-unix.html Let’s Start with Unix command. Find Command to find the modified files 30 days ago. Note : We can give any number of days Important : -mtime +30 means you are looking for a file modified 30 days ago and -mtime -30 means less than 60 days. Command is as below: find /home -iname "*.txt" -mtime - 30 –print Find Command to Display   content of file on screen that were last modified 30 days ago. find /home/   -iname "*.txt" -mtime -30 -exec cat {} \; Below is the output of above commands in putty Ter...