> For the complete documentation index, see [llms.txt](https://devops-3.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devops-3.gitbook.io/devops/docs/module-1-linux-introduction/basic-commands/more-commands.md).

# More Commands

1. cp command

```bash
cp   // Copy files from one directory to another.
Ex: cp sourcefile destinationfile
```

The **cp command** of Linux is equivalent to copy-paste and cut-paste in Windows.&#x20;

2. mv command

<pre class="language-bash"><code class="lang-bash"><strong>mv   // Rename and Replace the files.
</strong><strong>Ex: mv sourcedir destinationdir
</strong></code></pre>

The **mv command** is generally used for renaming the files in Linux.

**mv \<file name> \<Renamed file name>** to rename the files

3. uname command

```bash
uname // Command to get basic information about the OS.
Ex: uname -a
```

The **uname command** is used to check the complete OS information of the system.

4. locate command

```bash
locate   // Find a file in the database.
Ex: locate file.txt
```

The **locate command** is generally used to locate the files in the database. Use an asterisk (\*) to search for content that contains two or more words.

5. clear command

```bash
clear // Clear terminal.
```

The **clear command** is a standard command to clear the terminal screen.

6. ps command

```bash
ps   // Display the processes in terminal.
```

**ps command** in Linux is used to check the active processes in the terminal.

7. whoami command&#x20;

```bash
whoami   // Display Current username
```

The **whoami command** provides basic information that is extremely useful when working on multiple systems. In general, if you are working with a single computer, you will not require it as frequently as a network administrator.

8. wget command

```bash
wget // Download files from the internet.
Ex: wget https://AWSCLI.com
```

The **wget command** in the Linux command line allows you to download files from the internet. It runs in the background and does not interfere with other processes.

9. whereis command

<pre class="language-bash"><code class="lang-bash"><strong>whereis // View the exact location of any command typed after this command.
</strong></code></pre>

**whereis command** in Linux is generally used to see the exact location of any command typed after this.&#x20;

10. &#x20;alias command

```bash
alias   // Command shortner
EX: alias c='cat'
```

alias is a user-defined shorthand for a longer command or sequence of commands.

11. top command

```bash
top   // Display Cpu/Memory usage
```

The top command displays real-time information about system activity.

12. du command&#x20;

```bash
du   // Display Disk Usage
Ex: du -sh /path/to/directory
```

The du command is used to estimate file and directory space usage.

13. &#x20;df command

```bash
df   // Display Disk Free Space
Ex: df -h 
```

The df command displays disk space usage for filesystems.

14. nano command

```bash
nano // Text editor
Ex: nano file.txt
```

The nano command launches the Nano text editor.

15. &#x20; vim command

```bash
vi // Text Editor
Ex: vi file.txt
```

The nano command launches the Vim text editor.
