mirror of
https://github.com/linkedin/school-of-sre
synced 2026-01-19 06:58:03 +00:00
Deployed 944e497 with MkDocs version: 1.1.2
This commit is contained in:
@@ -2802,21 +2802,21 @@ not find the entry for that user in "/etc/passwd" or "/etc/shadow" file.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>groupadd \<group_name></th>
|
||||
<th>groupadd \<group_name></th>
|
||||
<th>Creates a new group</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>groupmod \<group_name></td>
|
||||
<td>groupmod \<group_name></td>
|
||||
<td>Modifies attributes of a group</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>groupdel \<group_name></td>
|
||||
<td>groupdel \<group_name></td>
|
||||
<td>Deletes a group</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>gpasswd \<group_name></td>
|
||||
<td>gpasswd \<group_name></td>
|
||||
<td>Modifies password for group</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -2964,7 +2964,7 @@ in the similar way.</p>
|
||||
<h3 id="chown-command">Chown command</h3>
|
||||
<p>The chown command is used to change the owner of files or
|
||||
directories in Linux.</p>
|
||||
<p>Command syntax: chown \<new_owner> \<file_name></p>
|
||||
<p>Command syntax: chown \<new_owner> \<file_name></p>
|
||||
<p><img alt="" src="../images/linux/admin/image6.png" /></p>
|
||||
<p><strong>In case, we do not have sudo privileges, we need to use sudo
|
||||
command</strong>. Let's switch to user 'shivam' and try changing the owner. We
|
||||
@@ -3029,10 +3029,10 @@ host.</p>
|
||||
</li>
|
||||
</ol>
|
||||
<h3 id="how-to-run-commands-on-a-remote-host">How to run commands on a remote host ?</h3>
|
||||
<p>General syntax: ssh \<user>@\<hostname/hostip> \<command></p>
|
||||
<p>General syntax: ssh \<user>@\<hostname/hostip> \<command></p>
|
||||
<p><img alt="" src="../images/linux/admin/image14.png" /></p>
|
||||
<h3 id="how-to-transfer-files-from-one-host-to-another-host">How to transfer files from one host to another host ?</h3>
|
||||
<p>General syntax: scp \<source> \<destination></p>
|
||||
<p>General syntax: scp \<source> \<destination></p>
|
||||
<p><img alt="" src="../images/linux/admin/image32.png" /></p>
|
||||
<h2 id="package-management">Package Management</h2>
|
||||
<p>Package management is the process of installing and managing software on
|
||||
@@ -3067,19 +3067,19 @@ systems.</p>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>yum install \<package_name></td>
|
||||
<td>yum install \<package_name></td>
|
||||
<td>Installs a package on your system</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>yum update \<package_name></td>
|
||||
<td>yum update \<package_name></td>
|
||||
<td>Updates a package to it's latest available version</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>yum remove \<package_name></td>
|
||||
<td>yum remove \<package_name></td>
|
||||
<td>Removes a package from your system</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>yum search \<keyword></td>
|
||||
<td>yum search \<keyword></td>
|
||||
<td>Searches for a particular keyword</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user