Some Important commands for Linux administration

Some Important commands for Linux administration....



1. To register linux server with your account: -

#subscription-manager register --username amiteshjsk --password *******  --auto-attach

2. To mount your .iso file in linux server: -

#mount -o loop rhel-server-7.3-x86_64-dvd.iso /mnt/iso

3.To set Proxy address in Linux server: -

#export http_proxy=http://192.168.11.40:8080/

4.To configure NFS in Linux server: -

first of all you have to make entry in /etc/exports of nfs server like:-

/mnt/iso (rw,sync,no_root_squash)

Note: - /mnt/iso (desired mount which you want to share)
 If you want to share mount point with onle selected host then make entry in /etc/exports like: -

/mnt/iso 192.168.11.42 (rw,sync,no_root_squash)

After that restart nfs service: -

#service nfs restart

Now you can check shared mountpoint details by below command: -
#showmount -e
Export list for MONITORING:
/mnt/iso *

now mount in client server after creating a directory

#mkdir iso
#mount -t nfs 192.168.11.41:/mnt/iso /iso
Note: - 192.168.11.41 (NFS Server IP )

No comments:

Post a Comment

Introduction to Linux Part 1

Introduction to Linux Part 1

Introduction to Linux Linux is an operating system that works just like Windows and Mac OS X. As an operating system, Linux is a very h...