find command in brief
World of Unix/Linux
For Unix/Linux Geeks... For Beginners... For Admins... After all.... Knowledge Sharing.....
Friday, 10 April 2015
Saturday, 14 March 2015
Wednesday, 6 August 2014
Basic - Shell Builtins
alias
echo
expr
printf
sleep
The sleep command suspends execution of a process for at least the interval specified. The sleep instruction suspends the calling process for at least the specified number of seconds (the default), minutes, hours or days.
Usage:
sleep number[suffix]
or:
sleep option
Suffix:
s (seconds)
m (minutes)
h (hours)
d (days)
test
true and false
unset
wait
yes
Tuesday, 22 July 2014
Server Perfomance Tunnig
uptime
The uptime command provides the information about the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.
[root@subrat ~]# uptime
10:09:52 up 70 days, 18:58, 4 user, load average: 0.05, 0.00, 0.00
top
htop
free
iostat
sar
The uptime command provides the information about the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.
[root@subrat ~]# uptime
10:09:52 up 70 days, 18:58, 4 user, load average: 0.05, 0.00, 0.00
top
htop
free
iostat
sar
Basic - Text Processing
banner
basename
comm
csplit
cut
diff
dirname
ed
ex
fmt
fold
head
iconv
join
less
more
nl
paste
sed
sort
spell
strings
tail
tr
uniq
vi
wc
xargs
basename
comm
csplit
cut
diff
dirname
ed
ex
fmt
fold
head
iconv
join
less
more
nl
paste
sed
sort
spell
strings
tail
tr
uniq
vi
wc
xargs
Basic - Network Utilities
ping
host
The host command in linux is used to resolve a host name into an Internet Protocol (IP) address or an IP address into a host name. It is being treated as a DNS Lookup utility.
- To find the IP address of a Hostname.
[root@unixlinux ~]# host google.com
google.com has address 74.125.68.138
google.com has address 74.125.68.139
google.com has address 74.125.68.100
google.com has address 74.125.68.101
google.com has address 74.125.68.102
google.com has address 74.125.68.113
- To find the hostname of an IP address.
[root@unixlinux ~]# host 10.132.88.33
33.88.132.10.in-addr.arpa domain name pointer ip-10-132-88-33.ap-southeast-1.compute.internal.
-To query of type ANY record for the domain.
[root@unixlinux ~]# host -a google.com
Trying "google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13858
;; flags: qr rd ra; QUERY: 1, ANSWER: 19, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN ANY
;; ANSWER SECTION:
google.com. 88403 IN NS ns4.google.com.
google.com. 88403 IN NS ns1.google.com.
google.com. 88403 IN NS ns2.google.com.
google.com. 88403 IN NS ns3.google.com.
google.com. 120 IN A 74.125.130.138
google.com. 120 IN A 74.125.130.139
google.com. 120 IN A 74.125.130.100
google.com. 120 IN A 74.125.130.101
google.com. 120 IN A 74.125.130.102
google.com. 120 IN A 74.125.130.113
google.com. 300 IN AAAA 2404:6800:4003:c01::8b
google.com. 600 IN MX 20 alt1.aspmx.l.google.com.
google.com. 600 IN MX 30 alt2.aspmx.l.google.com.
google.com. 600 IN MX 40 alt3.aspmx.l.google.com.
google.com. 600 IN MX 50 alt4.aspmx.l.google.com.
google.com. 600 IN MX 10 aspmx.l.google.com.
google.com. 86400 IN TYPE257 \# 19 0005697373756573796D616E7465632E636F6D
google.com. 86400 IN SOA ns1.google.com. dns-admin.google.com. 2014021800 7200 1800 1209600 300
google.com. 3600 IN TXT "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
Received 497 bytes from 10.132.88.2#53 in 5 ms
hostname
ifconfig
inetd
ip
nslookup
netcat
netstat
dig
telnet
ssh
scp
ftp
rdate
rlogin
rsync
route
traceroute
elinks
wget
host
The host command in linux is used to resolve a host name into an Internet Protocol (IP) address or an IP address into a host name. It is being treated as a DNS Lookup utility.
- To find the IP address of a Hostname.
[root@unixlinux ~]# host google.com
google.com has address 74.125.68.138
google.com has address 74.125.68.139
google.com has address 74.125.68.100
google.com has address 74.125.68.101
google.com has address 74.125.68.102
google.com has address 74.125.68.113
- To find the hostname of an IP address.
[root@unixlinux ~]# host 10.132.88.33
33.88.132.10.in-addr.arpa domain name pointer ip-10-132-88-33.ap-southeast-1.compute.internal.
-To query of type ANY record for the domain.
[root@unixlinux ~]# host -a google.com
Trying "google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13858
;; flags: qr rd ra; QUERY: 1, ANSWER: 19, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN ANY
;; ANSWER SECTION:
google.com. 88403 IN NS ns4.google.com.
google.com. 88403 IN NS ns1.google.com.
google.com. 88403 IN NS ns2.google.com.
google.com. 88403 IN NS ns3.google.com.
google.com. 120 IN A 74.125.130.138
google.com. 120 IN A 74.125.130.139
google.com. 120 IN A 74.125.130.100
google.com. 120 IN A 74.125.130.101
google.com. 120 IN A 74.125.130.102
google.com. 120 IN A 74.125.130.113
google.com. 300 IN AAAA 2404:6800:4003:c01::8b
google.com. 600 IN MX 20 alt1.aspmx.l.google.com.
google.com. 600 IN MX 30 alt2.aspmx.l.google.com.
google.com. 600 IN MX 40 alt3.aspmx.l.google.com.
google.com. 600 IN MX 50 alt4.aspmx.l.google.com.
google.com. 600 IN MX 10 aspmx.l.google.com.
google.com. 86400 IN TYPE257 \# 19 0005697373756573796D616E7465632E636F6D
google.com. 86400 IN SOA ns1.google.com. dns-admin.google.com. 2014021800 7200 1800 1209600 300
google.com. 3600 IN TXT "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
Received 497 bytes from 10.132.88.2#53 in 5 ms
ifconfig
inetd
ip
nslookup
netcat
netstat
dig
telnet
ssh
scp
ftp
rdate
rlogin
rsync
route
traceroute
elinks
wget
Subscribe to:
Posts (Atom)