Saturday, February 21, 2015

Basic Commands (Unix) General Unix Commands :

Basic Commands (Unix)  General Unix Commands :

Command Example Description
1.   ls ls
ls -alF Lists files in current directory
List in long format
2.   cd cd tempdir
d ..
d ~dhyatt/web-docs Change directory to tempdir
ove back one directory
ove into dhyatt's web-docs directory
3.   mkdir mkdir graphics Make a directory called graphics
4. rmdir rmdir emptydir Remove directory (must be empty)
5.   cp cp file1 web-docs
cp file1 file1.bak Copy file into directory
Make backup of file1
6.     rm rm file1.bak
rm *.tmp Remove or delete file
Remove all file
7.   mv mv old.html new.html Move or rename files
8.     more more index.html Look at file, one page at a time
9.   lpr lpr index.html Send file to printer
10. man man ls Online manual (help) about command

Friday, February 20, 2015

Sharing directories with NFS in Solaris 10

Sharing directories with NFS in Solaris 10

To share a directory in Solaria, the home of the users, or a directory with binaries.
With svcs the service status can be checked, so lets check the status of the nfs server:

#svcs network/nfs/server
STATE STIME FMRI
offline 2:19:03 svc:/network/nfs/server:default
The service is offline, so you have to enable it and start it, lets do it:
#svcadm enable -r network/nfs/server
#svcadm enable -s network/nfs/server
#svcadm restart network/nfs/server
Now it is started:
#svcs network/nfs/server
STATE STIME FMRI
online 2:29:51 svc:/network/nfs/server:default
Now, to share a directory, edit /etc/dfs/dfstab and add:
share -F nfs /export/test
Save the file and execute:
#shareall -F nfs
Now check the shares:
#share
- /export/test rw "" 

Featured Post

Managing CA Certificates on Red Hat Linux 9: Understanding update-ca-trust extract

  Managing CA Certificates on RHEL9 RHEL8 OracleLinux9 OracleLinux8 In today's digital landscape, securing communications and verifying ...