#1384
NFS :
mount -t nfs hostname:share_name /local/path/to/share/folder/
CIFS :
mount -t cifs //hostname/share_name /local/path/to/share/folder/ -o user=USER,pass=PASSWORD
Just another Code Snippet site
#1384
NFS :
mount -t nfs hostname:share_name /local/path/to/share/folder/
CIFS :
mount -t cifs //hostname/share_name /local/path/to/share/folder/ -o user=USER,pass=PASSWORD
#1232
Basic Structure of a URL
//:/
Basic structure of a URLProtocol — Specifies the protocol name be used to access the resource on the Internet. (HTTP (without SSL) or HTTPS (with SSL))
hostname — Host name specifies the host that owns the resource. For example, www.stackoverflow.com. A server provides services using the name of the host.
port — A port number used to recognize a specific process to which an Internet or other network message is to be forwarded when it arrives at a server.
pathname — The path gives info about the specific resource within the host that the Web client wants to access. For example, /index.html.
query — A query string follows the path component, and provides a string of information that the resource can utilize for some purpose (for example, as parameters for a search or as data to be processed).
hash — The anchor portion of a URL, includes the hash sign (#).
With these Location object properties you can access all of these URL componentshash – Sets or returns the anchor portion of a URL.
host – Sets or returns the hostname and port of a URL.
hostname – Sets or returns the hostname of a URL.
href – Sets or returns the entire URL.
pathname – Sets or returns the path name of a URL.
port – Sets or returns the port number the server uses for a URL.
protocol – Sets or returns the protocol of a URL.
search – Sets or returns the query portion of a URL
#77
alias 'll=ls -ltrh --color=auto'
alias ..='cd ..'
alias cls='clear'
alias psd='/usr/ucb/ps -auxww'
To add ‘top’ in Solaris :
alias 'top=prstat'
to add ‘wget’ in Solaris :
alias 'wget=/usr/sfw/bin/wget'
—————————————-
Filtered history :
Create an .inputrc file in the home folder with following content :
"\e[A": history-search-backward "\e[B": history-search-forward set show-all-if-ambiguous on set completion-ignore-case on
#236
Create Function based index : (b-tree)
CREATE INDEX <index_name> ON <table_name> (<function_definition>);
example :
CREATE INDEX fidx_1 ON table_1 (to_char(modifiedon, 'MM-YYYY'));
#2119
This is an issue with HTTPS certificate for EPEL repo (or mirror)
Use :
sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
to replace HTTPS by HTTP