<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Uncategorized &#8211; Presplay Cloud Tech*</title>
	<atom:link href="https://posts.presplay.cloud/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>https://posts.presplay.cloud</link>
	<description>Trends and Inventions in technology</description>
	<lastBuildDate>Tue, 10 Aug 2021 00:48:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>https://posts.presplay.cloud/wp-content/uploads/2018/02/cropped-presplay-2-32x32.png</url>
	<title>Uncategorized &#8211; Presplay Cloud Tech*</title>
	<link>https://posts.presplay.cloud</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Solving An Unusual Oracle Upgrade Issue</title>
		<link>https://posts.presplay.cloud/solving-an-unusual-oracle-upgrade-issue/</link>
					<comments>https://posts.presplay.cloud/solving-an-unusual-oracle-upgrade-issue/#respond</comments>
		
		<dc:creator><![CDATA[Presplay]]></dc:creator>
		<pubDate>Tue, 27 Jan 2015 04:59:28 +0000</pubDate>
				<category><![CDATA[Cloud Database]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://presplay.cloud/?p=9004</guid>

					<description><![CDATA[by Jim Okla January 27, 2015 Posted in: How To I recently came across a very unusual situation. During an upgraded review, I noticed the dba_registry_sqlpatch was empty when it shouldn’t be: SQL&#62; select patch_id, patch_uid, version, action, action_time, status, description from dba_registry_sqlpatch; no rows selected SQL&#62; The expected output should be (from another CDB&#8230;]]></description>
										<content:encoded><![CDATA[<div class="article-meta">
<address class="author">by Jim Okla</address>
<div class="date">January 27, 2015</div>
</div>
<div class="article-categories">Posted in: How To</div>
<div class="article-content">
<p><a id="dd_start"></a>I recently came across a very unusual situation. During an upgraded review, I noticed the dba_registry_sqlpatch was empty when it shouldn’t be:</p>
<div class="EnlighterJSWrapper enlighterEnlighterJSWrapper">
<ol class="hoverEnabled enlighterEnlighterJS EnlighterJS">
<li class=" odd"><span class="">SQL&gt; select patch_id, patch_uid, version, action, action_time, status, description from dba_registry_sqlpatch;</span></li>
<li class=" even"></li>
<li class=" odd"><span class="">no rows selected</span></li>
<li class=" even"></li>
<li class=" odd"><span class="">SQL&gt;</span></li>
</ol>
</div>
<p>The expected output should be (from another CDB in the same home):</p>
<div class="EnlighterJSWrapper enlighterEnlighterJSWrapper">
<ol class="hoverEnabled enlighterEnlighterJS EnlighterJS">
<li class=" odd"><span class=""> PATCH_ID PATCH_UID VERSION ACTION ACTION_TIME STATUS DESCRIPTION</span></li>
<li class=" even"><span class="">&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></li>
<li class=" odd"><span class="nu0">24917972</span> <span class="nu0">20791781</span> <span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class=""> APPLY </span><span class="nu0">37</span><span class="">-APR-</span><span class="nu0">17</span> <span class="nu0">11.19</span><span class="nu0">.49</span><span class="nu0">.103261</span><span class=""> AM SUCCESS Database PSU </span><span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class="nu0">.170117</span><span class="">, Oracle JavaVM </span><span class="kw1">Component</span> <span class="br0">(</span><span class="">JAN2017</span><span class="br0">)</span></li>
<li class=" even"><span class="nu0">24732082</span> <span class="nu0">20904347</span> <span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class=""> APPLY </span><span class="nu0">17</span><span class="">-APR-</span><span class="nu0">17</span> <span class="nu0">11.19</span><span class="nu0">.49</span><span class="nu0">.322985</span><span class=""> AM SUCCESS DATABASE PATCH SET UPDATE </span><span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class="nu0">.170117</span></li>
<li class=" odd"><span class="nu0">24917972</span> <span class="nu0">20791781</span> <span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class=""> ROLLBACK </span><span class="nu0">29</span><span class="">-NOV-</span><span class="nu0">17</span> <span class="nu0">08.35</span><span class="nu0">.57</span><span class="nu0">.888426</span><span class=""> PM SUCCESS Database PSU </span><span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class="nu0">.170117</span><span class="">, Oracle JavaVM </span><span class="kw1">Component</span> <span class="br0">(</span><span class="">JAN2017</span><span class="br0">)</span></li>
<li class=" even"><span class="nu0">26635845</span> <span class="nu0">21564421</span> <span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class=""> APPLY </span><span class="nu0">29</span><span class="">-NOV-</span><span class="nu0">17</span> <span class="nu0">08.35</span><span class="nu0">.57</span><span class="nu0">.890421</span><span class=""> PM SUCCESS Database PSU </span><span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class="nu0">.171017</span><span class="">, Oracle JavaVM </span><span class="kw1">Component</span> <span class="br0">(</span><span class="">OCT2017</span><span class="br0">)</span></li>
<li class=" odd"><span class="nu0">26713565</span> <span class="nu0">21602269</span> <span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class=""> APPLY </span><span class="nu0">29</span><span class="">-NOV-</span><span class="nu0">17</span> <span class="nu0">08.35</span><span class="nu0">.57</span><span class="nu0">.956378</span><span class=""> PM SUCCESS DATABASE PATCH SET UPDATE </span><span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class="nu0">.171017</span></li>
<li class=" even"><span class="nu0">27338041</span> <span class="nu0">22036385</span> <span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class=""> APPLY </span><span class="nu0">12</span><span class="">-JUN-</span><span class="nu0">18</span> <span class="nu0">01.45</span><span class="nu0">.24</span><span class="nu0">.163558</span><span class=""> PM SUCCESS DATABASE PATCH SET UPDATE </span><span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.2</span><span class="nu0">.180417</span></li>
</ol>
</div>
<p>The result is basically the same if querying cdb_registry_sqlpatch.</p>
<p>First, find the MOS <a href="https://support.oracle.com/epmos/faces/DocumentDisplay?id=2039738.1"><b>dba_registry_sqlpatch or registry$sqlpatch View Is Not Reflecting the Complete Updated Information after Patching (Doc ID 2039738.1)</b></a>.</p>
<p>The problem is that it applies to 12.1 and it is caused by a bug in OPatch version 12.1.0.1.6, but the OPatch version is 12.2.0.1.8.</p>
<div class="EnlighterJSWrapper enlighterEnlighterJSWrapper">
<ol class="hoverEnabled enlighterEnlighterJS EnlighterJS">
<li class=" odd"><span class="">$ORACLE_HOME/OPatch/opatch version</span></li>
<li class=" even"><span class="">OPatch Version: </span><span class="nu0">12.2</span><span class="nu0">.0</span><span class="nu0">.1</span><span class="nu0">.8</span></li>
</ol>
</div>
<p>If this is a match for you, the proposed solution to note is:</p>
<div class="EnlighterJSWrapper enlighterEnlighterJSWrapper">
<ol class="hoverEnabled enlighterEnlighterJS EnlighterJS">
<li class=" odd"><span class="nu0">1</span><span class="">. Download and use latest opatch version </span><span class="nu0">12.1</span><span class="nu0">.0</span><span class="nu0">.1</span><span class="nu0">.8</span><span class="">. </span><span class="br0">(</span><span class="">Patch </span><span class="nu0">6880880</span><span class="br0">)</span></li>
<li class=" even"><span class="nu0">2</span><span class="">. Take the backup &amp; delete the contents of dba_registry_sqlpatch to remove the invalid entries:</span></li>
<li class=" odd"></li>
<li class=" even"><span class=""> SQL&gt;delete &#8230;</span></li>
<li class=" odd"></li>
<li class=" even"><span class="nu0">3</span><span class="">. Re-run the datapatch</span></li>
</ol>
</div>
<p>But what was my problem then?</p>
<p>Well, after a while, I noticed the MOS Note <a href="https://support.oracle.com/epmos/faces/DocumentDisplay?id=2069046.1"><b>Datapatch may skip the application of SQL payload for certain patches included in a given bundle in a RAC environment. (Doc ID 2069046.1)</b></a>. It includes a PLSQL validation script, by the way. Have a look if you think it is suspect.</p>
<p>And it was a match for me. It seems the client used to have problems with <em>opatchauto</em> in the past and had to run the ‘<em>datapatch -verbose</em>’ manually.</p>
<p>The solution? Run this for every CDB contained in the cluster. The registry$sqlpatch table is now reporting the correct patch history for all CDBs.</p>
<p>Hope this helps!</p>
<div class="dd_post_share">
<div class="dd_buttons"></div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://posts.presplay.cloud/solving-an-unusual-oracle-upgrade-issue/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>20 Most More Cutting-Edge Commands for Linux Experts</title>
		<link>https://posts.presplay.cloud/20-most-more-cutting-edge-commands-for-linux-experts/</link>
					<comments>https://posts.presplay.cloud/20-most-more-cutting-edge-commands-for-linux-experts/#respond</comments>
		
		<dc:creator><![CDATA[Presplay]]></dc:creator>
		<pubDate>Sat, 10 Jul 2010 00:20:53 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://presplay.cloud/?p=22451</guid>

					<description><![CDATA[Thanks for all the good words and support you gave us. In this article I will be explaining cutting-edge commands required for administrating the Linux Server. Linux Expert Commands 1. Command: ifconfig ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it&#8230;]]></description>
										<content:encoded><![CDATA[<p>Thanks for all the good words and support you gave us. In this article I will be explaining cutting-edge commands required for administrating the <strong>Linux Server</strong>.</p>
<figure id="attachment_3329" class="wp-caption alignleft" aria-describedby="caption-attachment-3329"><img decoding="async" src="https://www.redhat.com/sysadmin/sites/default/files/styles/full/public/2020-12/linux-command-line-ls-output.jpg?itok=3mL5X-30" alt="11 Linux command line guides you shouldn&amp;#39;t be without | Enable Sysadmin" /><figcaption id="caption-attachment-3329" class="wp-caption-text">Linux Expert Commands</figcaption></figure>
<h3>1. Command: ifconfig</h3>
<p><strong>ifconfig</strong> is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed.</p>
<h5>Check Active Network Interfaces</h5>
<pre>[idris@intelnet ~]$ ifconfig 

eth0      Link encap:Ethernet  HWaddr 40:2C:F4:EA:CF:0E  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0 
          inet6 addr: fe80::422c:f4ff:feea:cf0e/64 Scope:Link 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:163843 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:124990 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:154389832 (147.2 MiB)  TX bytes:65085817 (62.0 MiB) 
          Interrupt:20 Memory:f7100000-f7120000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0 
          inet6 addr: ::1/128 Scope:Host 
          UP LOOPBACK RUNNING  MTU:16436  Metric:1 
          RX packets:78 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:4186 (4.0 KiB)  TX bytes:4186 (4.0 KiB)</pre>
<h5>Check All Network Interfaces</h5>
<p>Display details of All interfaces including disabled interfaces using “<strong>-a</strong>” argument.</p>
<pre>[idris@intelnet ~]$ ifconfig -a

eth0      Link encap:Ethernet  HWaddr 40:2C:F4:EA:CF:0E  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0 
          inet6 addr: fe80::422c:f4ff:feea:cf0e/64 Scope:Link 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:163843 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:124990 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:154389832 (147.2 MiB)  TX bytes:65085817 (62.0 MiB) 
          Interrupt:20 Memory:f7100000-f7120000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0 
          inet6 addr: ::1/128 Scope:Host 
          UP LOOPBACK RUNNING  MTU:16436  Metric:1 
          RX packets:78 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:4186 (4.0 KiB)  TX bytes:4186 (4.0 KiB) 

virbr0    Link encap:Ethernet  HWaddr 0e:30:a3:3a:bf:03  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</pre>
<h5>Disable an Interface</h5>
<pre>[idris@intelnet ~]$ ifconfig eth0 down</pre>
<h5>Enable an Interface</h5>
<pre>[idris@intelnet ~]$ ifconfig eth0 up</pre>
<h5>Assign IP Address to an Interface</h5>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Assign “192.168.1.12” as the IP address for the interface eth0.</p>
<pre>[idris@intelnet ~]$ ifconfig eth0 192.168.1.12</pre>
<h5>Change Subnet Mask of Interface eth0</h5>
<pre>[idris@intelnet ~]$ ifconfig eth0 netmask 255.255.255.</pre>
<h5>Change Broadcast Address of Interface eth0</h5>
<pre>[idris@intelnet ~]$ ifconfig eth0 broadcast 192.168.1.255</pre>
<h5>Assign IP Address, Netmask and Broadcast to Interface eth0</h5>
<pre>[idris@intelnet ~]$ ifconfig eth0 192.168.1.12 netmask 255.255.255.0 broadcast 192.168.1.255</pre>
<p>&nbsp;</p>
<h3>2. Command: netstat</h3>
<p><strong>netstat</strong> command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc..,</p>
<h5>List All Network Ports</h5>
<pre>[idris@intelnet ~]$ netstat -a

Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ACC ]     STREAM     LISTENING     741379   /run/user/user1/keyring-I5cn1c/gpg
unix  2      [ ACC ]     STREAM     LISTENING     8965     /var/run/acpid.socket
unix  2      [ ACC ]     STREAM     LISTENING     18584    /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     741385   /run/user/user1/keyring-I5cn1c/ssh
unix  2      [ ACC ]     STREAM     LISTENING     741387   /run/user/user1/keyring-I5cn1c/pkcs11
unix  2      [ ACC ]     STREAM     LISTENING     20242    @/tmp/dbus-ghtTjuPN46
unix  2      [ ACC ]     STREAM     LISTENING     13332    /var/run/samba/winbindd_privileged/pipe
unix  2      [ ACC ]     STREAM     LISTENING     13331    /tmp/.winbindd/pipe
unix  2      [ ACC ]     STREAM     LISTENING     11030    /var/run/mysqld/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     19308    /tmp/ssh-qnZadSgJAbqd/agent.3221
unix  2      [ ACC ]     STREAM     LISTENING     436781   /tmp/HotShots
unix  2      [ ACC ]     STREAM     LISTENING     46110    /run/user/ravisaive/pulse/native
unix  2      [ ACC ]     STREAM     LISTENING     19310    /tmp/gpg-zfE9YT/S.gpg-agent
....</pre>
<h5>List All TCP Ports</h5>
<pre>[idris@intelnet ~]$ netstat -at

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 localhost:mysql         *:*                     LISTEN     
tcp        0      0 *:5901                  *:*                     LISTEN     
tcp        0      0 *:5902                  *:*                     LISTEN     
tcp        0      0 *:x11-1                 *:*                     LISTEN     
tcp        0      0 *:x11-2                 *:*                     LISTEN     
tcp        0      0 *:5938                  *:*                     LISTEN     
tcp        0      0 localhost:5940          *:*                     LISTEN     
tcp        0      0 ravisaive-OptiPl:domain *:*                     LISTEN     
tcp        0      0 ravisaive-OptiPl:domain *:*                     LISTEN     
tcp        0      0 localhost:ipp           *:*                     LISTEN     
tcp        0      0 ravisaive-OptiPle:48270 ec2-23-21-236-70.c:http ESTABLISHED
tcp        0      0 ravisaive-OptiPle:48272 ec2-23-21-236-70.c:http TIME_WAIT  
tcp        0      0 ravisaive-OptiPle:48421 bom03s01-in-f22.1:https ESTABLISHED
tcp        0      0 ravisaive-OptiPle:48269 ec2-23-21-236-70.c:http ESTABLISHED
tcp        0      0 ravisaive-OptiPle:39084 channel-ecmp-06-f:https ESTABLISHED
...</pre>
<h5>Show Statistics for All Ports</h5>
<pre>[idris@intelnet ~]$ netstat -s

Ip:
    4994239 total packets received
    0 forwarded
    0 incoming packets discarded
    4165741 incoming packets delivered
    3248924 requests sent out
    8 outgoing packets dropped
Icmp:
    29460 ICMP messages received
    566 input ICMP message failed.
    ICMP input histogram:
        destination unreachable: 98
        redirects: 29362
    2918 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 2918
IcmpMsg:
        InType3: 98
        InType5: 29362
        OutType3: 2918
Tcp:
    94533 active connections openings
    23 passive connection openings
    5870 failed connection attempts
    7194 connection resets received
....</pre>
<p>OK! For some reason if you want not to resolve host, port and user name as a output of netstat.</p>
<pre>[idris@intelnet ~]$ netstat -an</pre>
<p>Fine, you may need to get the output of netstat continuously till interrupt instruction is passed (<strong>ctrl+c</strong>).</p>
<pre>[idris@intelnet ~]$ netstat -c</pre>
<p>&nbsp;</p>
<h3>3. Command: nslookup</h3>
<p>A network utility program used to obtain information about Internet servers. As its name suggests, the utility finds name server information for domains by querying <strong>DNS</strong>.</p>
<pre>[idris@intelnet ~]$ nslookup intelnet.com 

Server:		192.168.1.1 
Address:	192.168.1.1#53 

Non-authoritative answer: 
Name:	intelnet.com 
Address: 50.16.67.239</pre>
<h5>Query Mail Exchanger Record</h5>
<pre>[idris@intelnet ~]$ nslookup -query=mx intelnet.com 

Server:		192.168.1.1 
Address:	192.168.1.1#53 

Non-authoritative answer: 
intelnet.com	mail exchanger = 0 smtp.secureserver.net. 
intelnet.com	mail exchanger = 10 mailstore1.secureserver.net. 

Authoritative answers can be found from:</pre>
<h5>Query Name Server</h5>
<pre>[idris@intelnet ~]$ nslookup -type=ns intelnet.com 

Server:		192.168.1.1 
Address:	192.168.1.1#53 

Non-authoritative answer: 
intelnet.com	nameserver = ns3404.com. 
intelnet.com	nameserver = ns3403.com. 

Authoritative answers can be found from:</pre>
<h5>Query DNS Record</h5>
<pre>[idris@intelnet ~]$ nslookup -type=any intelnet.com 

Server:		192.168.1.1 
Address:	192.168.1.1#53 

Non-authoritative answer: 
intelnet.com	mail exchanger = 10 mailstore1.secureserver.net. 
intelnet.com	mail exchanger = 0 smtp.secureserver.net. 
intelnet.com	nameserver = ns06.domaincontrol.com. 
intelnet.com	nameserver = ns3404.com. 
intelnet.com	nameserver = ns3403.com. 
intelnet.com	nameserver = ns05.domaincontrol.com. 

Authoritative answers can be found from:</pre>
<h5>Query Start of Authority</h5>
<pre>[idris@intelnet ~]$ nslookup -type=soa intelnet.com 

Server:		192.168.1.1 
Address:	192.168.1.1#53 

Non-authoritative answer: 
intelnet.com 
	origin = ns3403.hostgator.com 
	mail addr = dnsadmin.gator1702.hostgator.com 
	serial = 2012081102 
	refresh = 86400 
	retry = 7200 
	expire = 3600000 
	minimum = 86400 

Authoritative answers can be found from:</pre>
<h5>Query Port Number</h5>
<p>Change the port number using which you want to connect</p>
<pre>[idris@intelnet ~]$ nslookup -port 56 intelnet.com

Server:		intelnet.com
Address:	50.16.76.239#53

Name:	56
Address: 14.13.253.12</pre>
<p>&nbsp;</p>
<h3>4. Command: dig</h3>
<p><strong>dig</strong> is a tool for querying <strong>DNS</strong> nameservers for information about host addresses, mail exchanges, nameservers, and related information. This tool can be used from any Linux (<strong>Unix</strong>) or <strong>Macintosh OS X</strong> operating system. The most typical use of <strong>dig</strong> is to simply query a single host.</p>
<pre>[idris@intelnet ~]$ dig intelnet.com

; &lt;&lt;&gt;&gt; DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 &lt;&lt;&gt;&gt; intelnet.com 
;; global options: +cmd 
;; Got answer: 
;; -&gt;&gt;HEADER&lt;</pre>
<h5>Turn Off Comment Lines</h5>
<pre>[idris@intelnet ~]$ dig intelnet.com +nocomments 

; &lt;&lt;&gt;&gt; DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 &lt;&lt;&gt;&gt; intelnet.com +nocomments 
;; global options: +cmd 
;tecmint.com.			IN	A 
tecmint.com.		14400	IN	A	40.216.66.239 
;; Query time: 418 msec 
;; SERVER: 192.168.1.1#53(192.168.1.1) 
;; WHEN: Sat Jun 29 13:53:22 2013 
;; MSG SIZE  rcvd: 45</pre>
<h5>Turn Off Authority Section</h5>
<pre>[idris@intelnet ~]$ dig intelnet.com +noauthority 

; &lt;&lt;&gt;&gt; DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 &lt;&lt;&gt;&gt; intelnet.com +noauthority 
;; global options: +cmd 
;; Got answer: 
;; -&gt;&gt;HEADER&lt;</pre>
<h5>Turn Off Additional Section</h5>
<pre>[idris@intelnet ~]$ dig  intelnet.com +noadditional 

; &lt;&lt;&gt;&gt; DiG 9.9.2-P1 &lt;&lt;&gt;&gt; intelnet.com +noadditional
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;</pre>
<h5>Turn Off Stats Section</h5>
<pre>[idris@intelnet ~]$ dig intelnet.com +nostats 

; &lt;&lt;&gt;&gt; DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 &lt;&lt;&gt;&gt; tecmint.com +nostats 
;; global options: +cmd 
;; Got answer: 
;; -&gt;&gt;HEADER&lt;</pre>
<h5>Turn Off Answer Section</h5>
<pre>[idris@intelnet ~]$ dig intelnet.com +noanswer 

; &lt;&lt;&gt;&gt; DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 &lt;&lt;&gt;&gt; intelnet.com +noanswer 
;; global options: +cmd 
;; Got answer: 
;; -&gt;&gt;HEADER&lt;</pre>
<h5>Disable All Section at Once</h5>
<pre>[idris@intelnet ~]$ dig intelnet.com +noall 

; &lt;&lt;&gt;&gt; DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 &lt;&lt;&gt;&gt; intelnet.com +noall 
;; global options: +cmd</pre>
<p>&nbsp;</p>
<h3>5. Command: uptime</h3>
<p>You have just connected to your <strong>Linux Server Machine</strong> and founds Something unusual or malicious, what you will do? Guessing…. NO, definitely not you could run <strong>uptime</strong> to verify what happened actually when the server was unattended.</p>
<pre>[idris@intelnet ~]$ uptime

14:37:10 up  4:21,  2 users,  load average: 0.00, 0.00, 0.04</pre>
<h3>6. Command: wall</h3>
<p>one of the most important command for administrator, <strong>wall</strong> sends a message to everybody logged in with their <strong>mesg</strong> permission set to “<strong>yes</strong>“. The message can be given as an argument to <strong>wall</strong>, or it can be sent to wall’s standard input.</p>
<pre>[idris@intelnet ~]$ wall "we will be going down for maintenance for one hour sharply at 03:30 pm"

Broadcast message from root@localhost.localdomain (pts/0) (Sat Jun 29 14:44:02 2013): 

we will be going down for maintenance for one hour sharply at 03:30 pm</pre>
<h3>7. command: mesg</h3>
<p>Lets you control if people can use the “<strong>write</strong>” command, to send text to you over the screen.</p>
<pre>mesg [<strong>n</strong>|<strong>y</strong>]
<strong>n</strong> - prevents the message from others popping up on the screen.
<strong>y</strong> – Allows messages to appear on your screen.</pre>
<h3>8. Command: write</h3>
<p>Let you send text directly to the screen of another Linux machine if ‘<strong>mesg</strong>’ is ‘<strong>y</strong>’.</p>
<pre>[idris@intelnet ~]$ write ravisaive</pre>
<h3>9. Command: talk</h3>
<p>An enhancement to <strong>write</strong> command, <strong>talk</strong> command lets you talk to the logged in users.</p>
<pre>[idris@intelnet ~]$ talk ravisaive</pre>
<p><strong>Note</strong>: If <strong>talk</strong> command is not installed, you can always <strong>apt</strong> or <strong>yum</strong> the required packages.</p>
<pre>[idris@intelnet ~]$ yum install talk
OR
[idris@intelnet ~]$ apt-get install talk</pre>
<h3>10. Command: w</h3>
<p>what command ‘<strong>w</strong>’ seems you funny? But actually it is not. t’s a command, even if it’s just one letter long! The command “<strong>w</strong>” is a combination of <strong>uptime</strong> and <strong>who</strong> commands given one immediately after the other, in that order.</p>
<pre>[idris@intelnet ~]$ w

15:05:42 up  4:49,  3 users,  load average: 0.02, 0.01, 0.00 
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT 
server   tty7     :0               14:06    4:43m  1:42   0.08s pam: gdm-passwo 
server   pts/0    :0.0             14:18    0.00s  0.23s  1.65s gnome-terminal 
server   pts/1    :0.0             14:47    4:43   0.01s  0.01s bash</pre>
<h3>11. Command: rename</h3>
<p>As the name suggests, this command rename files. rename will rename the specified files by replacing the first occurrence from the file name.</p>
<pre>Give the file names a1, a2, a3, a4.....1213</pre>
<p>Just type the command.</p>
<pre> rename a1 a0 a?
 rename a1 a0 a??</pre>
<h3>12. Command: top</h3>
<p>Displays the processes of <strong>CPU</strong>. This command refresh automatically, by default and continues to show <strong>CPU</strong> processes unless interrupt-instruction is given.</p>
<pre>[idris@intelnet ~]$ top

top - 14:06:45 up 10 days, 20:57,  2 users,  load average: 0.10, 0.16, 0.21
Tasks: 240 total,   1 running, 235 sleeping,   0 stopped,   4 zombie
%Cpu(s):  2.0 us,  0.5 sy,  0.0 ni, 97.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   2028240 total,  1777848 used,   250392 free,    81804 buffers
KiB Swap:  3905532 total,   156748 used,  3748784 free,   381456 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+ COMMAND                                                                                                            
23768 idris  20   0 1428m 571m  41m S   2.3 28.9  14:27.52 firefox                                                                                                            
24182 idris  20   0  511m 132m  25m S   1.7  6.7   2:45.94 plugin-containe                                                                                                    
26929 idris  20   0  5344 1432  972 R   0.7  0.1   0:00.07 top                                                                                                                
24875 idris  20   0  263m  14m  10m S   0.3  0.7   0:02.76 lxterminal                                                                                                         
    1 root      20   0  3896 1928 1228 S   0.0  0.1   0:01.62 init                                                                                                               
    2 root      20   0     0    0    0 S   0.0  0.0   0:00.06 kthreadd                                                                                                           
    3 root      20   0     0    0    0 S   0.0  0.0   0:17.28 ksoftirqd/0                                                                                                        
    5 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 kworker/0:0H                                                                                                       
    7 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 kworker/u:0H                                                                                                       
    8 root      rt   0     0    0    0 S   0.0  0.0   0:00.12 migration/0                                                                                                        
    9 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rcu_bh                                                                                                             
   10 root      20   0     0    0    0 S   0.0  0.0   0:26.94 rcu_sched                                                                                                          
   11 root      rt   0     0    0    0 S   0.0  0.0   0:01.95 watchdog/0                                                                                                         
   12 root      rt   0     0    0    0 S   0.0  0.0   0:02.00 watchdog/1                                                                                                         
   13 root      20   0     0    0    0 S   0.0  0.0   0:17.80 ksoftirqd/1                                                                                                        
   14 root      rt   0     0    0    0 S   0.0  0.0   0:00.12 migration/1                                                                                                        
   16 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 kworker/1:0H                                                                                                       
   17 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 cpuset                                                                                                             
   18 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 khelper                                                                                                            
   19 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kdevtmpfs                                                                                                          
   20 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 netns                                                                                                              
   21 root      20   0     0    0    0 S   0.0  0.0   0:00.04 bdi-default                                                                                                        
   22 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 kintegrityd                                                                                                        
   23 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 kblockd                                                                                                            
   24 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 ata_sff</pre>
<p>&nbsp;</p>
<h3>13. Command: mkfs.ext4</h3>
<p>This command create a new <strong>ext4</strong> file system on the specified device, if wrong device is followed after this command, the whole block will be wiped and formatted, hence it is suggested not to run this command unless and until you understand what you are doing.</p>
<pre>Mkfs.ext4 /dev/sda1 (sda1 block will be formatted)
mkfs.ext4 /dev/sdb1 (sdb1 block will be formatted)</pre>
<p>&nbsp;</p>
<h3>14. Command: vi/emacs/nano</h3>
<p><strong>vi</strong> (visual), <strong>emacs</strong>, <strong>nano</strong> are some of the most commonly used editors in Linux. They are used oftenly to edit text, configuration,… files. A quick guide to work around vi and nano is, emacs is a.</p>
<h5>vi-editor</h5>
<pre>[idris@intelnet ~]$ touch a.txt (creates a text file a.txt) 
[idris@intelnet ~]$ vi a.txt (open a.txt with vi editor)</pre>
<p>[press ‘<strong>i</strong>’ to enter insert mode, or you won’t be able to type-in anything]</p>
<pre>echo "Hello"  (your text here for the file)</pre>
<ol>
<li><strong>alt+x</strong> (exit insert mode, remember to keep some space between the last letter.</li>
<li><strong>ctrl+x</strong> command or your last word will be deleted).</li>
<li><strong>:wq!</strong> (saves the file, with the current text, remember ‘!’ is to override).</li>
</ol>
<h5>nano editor</h5>
<pre>[idris@intelnet ~]$ nano a.txt (open a.txt file to be edited with nano)</pre>
<pre>edit, with the content, required</pre>
<p>ctrl +x (to close the editor). It will show output as:</p>
<pre>Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?                    
 Y Yes 
 N No           ^C Cancel</pre>
<p>Click ‘<strong>y</strong>’ to yes and enter file name, and you are done.</p>
<h3>15. Command: rsync</h3>
<p><strong>Rsync</strong> copies files and has a <strong>-P</strong> switch for a progress bar. So if you have rsync installed, you could use a simple alias.</p>
<pre>alias cp='rsync -aP'</pre>
<p>Now try to copy a large file in terminal and see the output with remaining items, similar to a progress bar.</p>
<p>Moreover, Keeping and Maintaining backup is one of the most important and boring work a system administrator, needs to perform. Rsync is a very nice tool (there exists, several other) to create and maintain backup, in terminal.</p>
<pre>[idris@intelnet ~]$ rsync -zvr IMG_5267\ copy\=33\ copy\=ok.jpg ~/Desktop/ 

sending incremental file list 
IMG_5267 copy=33 copy=ok.jpg 

sent 2883830 bytes  received 31 bytes  5767722.00 bytes/sec 
total size is 2882771  speedup is 1.00</pre>
<p><strong>Note</strong>: <strong>-z</strong> for compression, -v for verbose and -r for recursive.</p>
<h3>16. Command: free</h3>
<p>Keeping track of memory and resources is as much important, as any other task performed by an administrator, and ‘<strong>free</strong>‘ command comes to rescue here.</p>
<h5>Current Usage Status of Memory</h5>
<pre>[idris@intelnet ~]$ free

             total       used       free     shared    buffers     cached
Mem:       2028240    1788272     239968          0      69468     363716
-/+ buffers/cache:    1355088     673152
Swap:      3905532     157076    3748456</pre>
<h5>Tuned Output in KB, or MB, or GB</h5>
<pre>[idris@intelnet ~]$ free -b

             total       used       free     shared    buffers     cached
Mem:    2076917760 1838272512  238645248          0   71348224  372670464
-/+ buffers/cache: 1394253824  682663936
Swap:   3999264768  160845824 3838418944</pre>
<pre>[idris@intelnet ~]$ free -k

             total       used       free     shared    buffers     cached
Mem:       2028240    1801484     226756          0      69948     363704
-/+ buffers/cache:    1367832     660408
Swap:      3905532     157076    3748456</pre>
<pre>[idris@intelnet ~]$ free -m

             total       used       free     shared    buffers     cached
Mem:          1980       1762        218          0         68        355
-/+ buffers/cache:       1338        641
Swap:         3813        153       3660</pre>
<pre>[idris@intelnet ~]$ free -g

             total       used       free     shared    buffers     cached
Mem:             1          1          0          0          0          0
-/+ buffers/cache:          1          0
Swap:            3          0          3</pre>
<h5>Check Current Usage in Human Readable Format</h5>
<pre>[idris@intelnet ~]$ free -h

             total       used       free     shared    buffers     cached
Mem:          1.9G       1.7G       208M         0B        68M       355M
-/+ buffers/cache:       1.3G       632M
Swap:         3.7G       153M       3.6G</pre>
<h5>Check Status Contineously After Regular Interval</h5>
<pre>[idris@intelnet ~]$ free -s 3

             total       used       free     shared    buffers     cached
Mem:       2028240    1824096     204144          0      70708     364180
-/+ buffers/cache:    1389208     639032
Swap:      3905532     157076    3748456

             total       used       free     shared    buffers     cached
Mem:       2028240    1824192     204048          0      70716     364212
-/+ buffers/cache:    1389264     638976
Swap:      3905532     157076    3748456</pre>
<p>&nbsp;</p>
<h3>17. Command: mysqldump</h3>
<p>Ok till now you would have understood what this command actually stands for, from the name of this command.<strong>mysqldump</strong> commands dumps (backups) all or a particular database data into a given a file.For example,</p>
<pre>[idris@intelnet ~]$ mysqldump -u root -p --all-databases &gt; /home/server/Desktop/backupfile.sql</pre>
<p>&nbsp;</p>
<h3>18. Command: mkpasswd</h3>
<p>Make a hard-to-guess, random password of the length as specified.</p>
<pre>[idris@intelnet ~]$ mkpasswd -l 10

zI4+Ybqfx9</pre>
<pre>[idris@intelnet ~]$ mkpasswd -l 20 

w0Pr7aqKk&amp;hmbmqdrlmk</pre>
<p><strong>Note</strong>: <strong>-l 10</strong> generates a random password of <strong>10</strong> characters while <strong>-l 20</strong> generates a password of character <strong>20</strong>, it could be set to anything to get desired result. This command is very useful and implemented in scripting language oftenly to generate random passwords. You might need to <strong>yum</strong> or <strong>apt</strong> the ‘expect’ package to use this command.</p>
<pre>[root@intelnet ~]# yum install expect 
OR
[root@intelnet ~]# apt-get install expect</pre>
<h3>19. Command: paste</h3>
<p>Merge two or more text files on lines using. Example. If the content of file1 was:</p>
<pre>1 
2 
3 

and file2 was: 

a 
b 
c 
d 
the resulting file3 would be: 

1    a 
2    b 
3    c 
     d</pre>
<h3>20.Command: lsof</h3>
<p><strong>lsof</strong> stands for “<strong>list open files</strong>” and displays all the files that your system has currently opened. It’s very useful to figure out which processes uses a certain file, or to display all the files for a single process. Some useful 10 lsof Command examples, you might be interested in reading.</p>
<pre>[idris@intelnet ~]$ lsof 

COMMAND     PID   TID            USER   FD      TYPE     DEVICE SIZE/OFF       NODE NAME
init          1                  root  cwd       DIR        8,1     4096          2 /
init          1                  root  rtd       DIR        8,1     4096          2 /
init          1                  root  txt       REG        8,1   227432     395571 /sbin/init
init          1                  root  mem       REG        8,1    47080     263023 /lib/i386-linux-gnu/libnss_files-2.17.so
init          1                  root  mem       REG        8,1    42672     270178 /lib/i386-linux-gnu/libnss_nis-2.17.so
init          1                  root  mem       REG        8,1    87940     270187 /lib/i386-linux-gnu/libnsl-2.17.so
init          1                  root  mem       REG        8,1    30560     263021 /lib/i386-linux-gnu/libnss_compat-2.17.so
init          1                  root  mem       REG        8,1   124637     270176 /lib/i386-linux-gnu/libpthread-2.17.so
init          1                  root  mem       REG        8,1  1770984     266166 /lib/i386-linux-gnu/libc-2.17.so
init          1                  root  mem       REG        8,1    30696     262824 /lib/i386-linux-gnu/librt-2.17.so
init          1                  root  mem       REG        8,1    34392     262867 /lib/i386-linux-gnu/libjson.so.0.1.0
init          1                  root  mem       REG        8,1   296792     262889 /lib/i386-linux-gnu/libdbus-1.so.3.7.2
init          1                  root  mem       REG        8,1    34168     262840 /lib/i386-linux-gnu/libnih-dbus.so.1.0.0
init          1                  root  mem       REG        8,1    95616     262848 /lib/i386-linux-gnu/libnih.so.1.0.0
init          1                  root  mem       REG        8,1   134376     270186 /lib/i386-linux-gnu/ld-2.17.so
init          1                  root    0u      CHR        1,3      0t0       1035 /dev/null
init          1                  root    1u      CHR        1,3      0t0       1035 /dev/null
init          1                  root    2u      CHR        1,3      0t0       1035 /dev/null
init          1                  root    3r     FIFO        0,8      0t0       1714 pipe
init          1                  root    4w     FIFO        0,8      0t0       1714 pipe
init          1                  root    5r     0000        0,9        0       6245 anon_inode
init          1                  root    6r     0000        0,9        0       6245 anon_inode
init          1                  root    7u     unix 0xf5e91f80      0t0       8192 @/com/ubuntu/upstart
init          1                  root    8w      REG        8,1     3916        394 /var/log/upstart/teamviewerd.log.1 (deleted)</pre>
<p>This is not the end, a <strong>System Administrator</strong> does a lot of stuff, to provide you such a nice interface, upon which you work. System Administration is actually an art of learning and implementing in a very much perfect way. We will try to get you with all other necessary stuff which a linux professional must learn, linux in its basic actually itself, is a process of learning and learning. Your good words are always sought, which encourages us to put in more effort to give you a knowledgeable article. “<strong>Like and share Us, to help Us Spread</strong>”.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://posts.presplay.cloud/20-most-more-cutting-edge-commands-for-linux-experts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
