|
@@ -0,0 +1,135 @@
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
+ <head>
|
|
|
+ <title>Introduction to Linux Terminal Commands</title>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="keywords" content="Terminal,Terminal Commands,Command Line,CLI,Bash,Linux,Debian,Ubuntu,Navigating The Linux Command Line,Basic Introduction To Linux Commands,Learning Linux For Beginners,Introduction To Linux,Introduction To Command Line,Introduction To Linux Terminal,Beginner's Guide,Getting Started With Linux,How To,Tutorial,i12bretro">
|
|
|
+ <meta name="author" content="i12bretro">
|
|
|
+ <meta name="description" content="Introduction to Linux Terminal Commands">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <meta name="revised" content="11/20/2022 12:41:39 PM" />
|
|
|
+ <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
|
|
|
+ <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
|
|
+ <script type="text/javascript" src="includes/js/steps.js"></script>
|
|
|
+ <link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div id="gridContainer">
|
|
|
+ <div class="topMargin"></div>
|
|
|
+ <div id="listName" class="topMargin">
|
|
|
+ <h1>Introduction to Linux Terminal Commands</h1>
|
|
|
+ </div>
|
|
|
+ <div></div>
|
|
|
+ <div id="content">
|
|
|
+ <ol>
|
|
|
+ <li>cat [Concatenate] <a href="https://man7.org/linux/man-pages/man1/cat.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># cat example<br />
|
|
|
+ sudo cat /var/log/boot.log</div>
|
|
|
+
|
|
|
+ <p>concatenate files and print on the standard output</p>
|
|
|
+ </li>
|
|
|
+ <li>cd [Change Directory] <a href="https://man7.org/linux/man-pages/man1/cd.1p.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># cd examples<br />
|
|
|
+ cd /var/log<br />
|
|
|
+ ls<br />
|
|
|
+ cd ~<br />
|
|
|
+ ls</div>
|
|
|
+
|
|
|
+ <p>change the working directory</p>
|
|
|
+ </li>
|
|
|
+ <li>cp [Copy] <a href="https://man7.org/linux/man-pages/man1/cp.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># cp example<br />
|
|
|
+ cp ./Downloads ./Downloads-bkup -r<br />
|
|
|
+ ls</div>
|
|
|
+
|
|
|
+ <p>copy files and directories</p>
|
|
|
+ </li>
|
|
|
+ <li>du [Disk Usage] <a href="https://man7.org/linux/man-pages/man1/du.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># du examples<br />
|
|
|
+ du -h<br />
|
|
|
+ du -sh</div>
|
|
|
+
|
|
|
+ <p>estimate file space usage</p>
|
|
|
+ </li>
|
|
|
+ <li>find <a href="https://man7.org/linux/man-pages/man1/find.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># find example<br />
|
|
|
+ find *.log</div>
|
|
|
+
|
|
|
+ <p>search for files in a directory hierarchy</p>
|
|
|
+ </li>
|
|
|
+ <li>ls [List] <a href="https://man7.org/linux/man-pages/man1/ls.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># ls example<br />
|
|
|
+ ls /var/log</div>
|
|
|
+
|
|
|
+ <p>List directory contents</p>
|
|
|
+ </li>
|
|
|
+ <li>mkdir [Make Directory] <a href="https://man7.org/linux/man-pages/man1/mkdir.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># mkdir example<br />
|
|
|
+ mkdir ./directory_from_terminal<br />
|
|
|
+ ls</div>
|
|
|
+
|
|
|
+ <p>make directories</p>
|
|
|
+ </li>
|
|
|
+ <li>mv [Move] <a href="https://man7.org/linux/man-pages/man1/mv.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># mv example<br />
|
|
|
+ mv ./directory_from_terminal ./directory_moved<br />
|
|
|
+ ls</div>
|
|
|
+
|
|
|
+ <p>move (rename) files</p>
|
|
|
+ </li>
|
|
|
+ <li>pwd [Print Working Directory] <a href="http://man7.org/linux/man-pages/man1/pwd.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># pwd example<br />
|
|
|
+ pwd</div>
|
|
|
+
|
|
|
+ <p>print name of current/working directory</p>
|
|
|
+ </li>
|
|
|
+ <li>rm [Remove] <a href="https://man7.org/linux/man-pages/man1/rm.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># rm example<br />
|
|
|
+ rm ./directory_moved -r<br />
|
|
|
+ ls</div>
|
|
|
+
|
|
|
+ <p>remove files or directories</p>
|
|
|
+ </li>
|
|
|
+ <li>top <a href="https://man7.org/linux/man-pages/man1/top.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># top example<br />
|
|
|
+ top</div>
|
|
|
+
|
|
|
+ <p>display Linux processes</p>
|
|
|
+ </li>
|
|
|
+ <li>touch <a href="https://man7.org/linux/man-pages/man1/touch.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># touch example<br />
|
|
|
+ touch ./empty_file_from_touch.txt<br />
|
|
|
+ ls</div>
|
|
|
+
|
|
|
+ <p>change file timestamps</p>
|
|
|
+ </li>
|
|
|
+ <li>uname [Unix Name] <a href="https://man7.org/linux/man-pages/man1/uname.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># uname example<br />
|
|
|
+ uname -a</div>
|
|
|
+
|
|
|
+ <p>print system information</p>
|
|
|
+ </li>
|
|
|
+ <li>watch <a href="https://man7.org/linux/man-pages/man1/watch.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># watch example<br />
|
|
|
+ watch -n 3 --exec date</div>
|
|
|
+
|
|
|
+ <p>execute a program periodically, showing output fullscreen</p>
|
|
|
+ </li>
|
|
|
+ <li>wget <a href="https://man7.org/linux/man-pages/man1/wget.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># wget example<br />
|
|
|
+ wget https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png</div>
|
|
|
+
|
|
|
+ <p>non-interactive network downloader</p>
|
|
|
+ </li>
|
|
|
+ <li>whoami [Who Am I] <a href="https://man7.org/linux/man-pages/man1/whoami.1.html" target="_blank">Manpage</a>
|
|
|
+ <div class="codeBlock"># whoami example<br />
|
|
|
+ whoami</div>
|
|
|
+
|
|
|
+ <p>print effective userid</p>
|
|
|
+ </li>
|
|
|
+</ol> </div>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+
|