Useful Task in Linux
Changing time zone
# cd /etc/
# ls -lrt local-time*
# ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
Save entry in : vi /etc/ntp.conf
Server <ip>
# service ntpd restart
# cd /etc/
# ls -lrt local-time*
# ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
Save entry in : vi /etc/ntp.conf
Server <ip>
# service ntpd restart
Create NFS Share in linux
mkdir /u05
vi /etc/exports
u05 *(rw,sync)
mount -t nfs 10.10.10.XX:/u05 /u05/
To mount in other server
Create /u05 directory
Add entry in /etc/fstab
Add entry in /etc/fstab of other server
10.10.10.74:/u05 /u05 nfs defaults 0 0
mkdir /u05
vi /etc/exports
u05 *(rw,sync)
mount -t nfs 10.10.10.XX:/u05 /u05/
To mount in other server
Create /u05 directory
Add entry in /etc/fstab
Add entry in /etc/fstab of other server
10.10.10.74:/u05 /u05 nfs defaults 0 0
$ mount –a
unzip file at difference location in linux
Syntax:unzip {.zip-file-name} -d {/path/to/extract}
For example extract package.zip into /u01/app/oracle/patches/, enter:
# unzip p11212_linux_x86_64.zip -d /u01/app/oracle/patches/
Syntax:unzip {.zip-file-name} -d {/path/to/extract}
For example extract package.zip into /u01/app/oracle/patches/, enter:
# unzip p11212_linux_x86_64.zip -d /u01/app/oracle/patches/
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment