filesystem_navigation.html
1 <!DOCTYPE html> 2 <html lang="de"> 3 <head> 4 <meta charset="UTF-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 <meta http-equiv="onion-location" content="http://bopbopl6lohkl2rts3ltesjnag4hzs4jrx2h6k6etgq5xasbpqekzlqd.onion" /> 7 <title>BOP Wiki: Navigate Linux Filesystem</title> 8 <link rel="stylesheet" href="/assets/stylesheet.css" /> 9 <link rel="icon" type="image/x-icon" href="/assets/img/favicon.png"> 10 </head> 11 <body> 12 <header> 13 <!-- --------------------------------------------------------------------------------------------------------------------------------- --> 14 <script src="/assets/js/navbar-OpenClose.js"></script> 15 <script src="/assets/js/lightbox.js"></script> 16 <script src="/assets/js/copyCodeButton.js"></script> 17 <link rel="stylesheet" href="/resources/js-libraries/highlightJS/atom-one-dark.min.css"> 18 <script src="/resources/js-libraries/highlightJS/highlight.min.js"></script> 19 <script src="/resources/js-libraries/highlightJS/highlightjs-line-numbers.min.js"></script> 20 <script>hljs.highlightAll();</script> 21 <script>hljs.initLineNumbersOnLoad();</script> 22 <!-- --------------------------------------------------------------------------------------------------------------------------------- --> 23 <div class="branding"> 24 <button class="toggle-btn-navbar" id="navbarOpenButton">☰</button> 25 <a href="/"> 26 <img class="logo" src="/assets/img/logo.png"> 27 </a> 28 <div class="typing-animation">BytesOfProgress</div> 29 </div> 30 </header> 31 <div id="navbarContainer" class="navbar-container"> 32 <iframe class="navbar-iframe" src="/assets/navbar/navbar.html" frameBorder= "0"></iframe> 33 </div> 34 <main> 35 <!-- --------------------------------------------------------------------------------------------------------------------------------- --> 36 <article class="site-post"> 37 <header class="post-header"> 38 <h1 class="post-title">Navigate Linux Filesystem</h1> 39 <div class="post-meta"> 40 </div> 41 </header> 42 </article> 43 <nav class="breadcrumb"> 44 <a href="/">Home</a> 45 <span class="divider">›</span> 46 <a href="/wiki/">Wiki</a> 47 <span class="divider">›</span> 48 <a href="/wiki/linux/A1linux.html">GNU / Linux</a> 49 <span class="divider">›</span> 50 <span class="current">Navigate Linux Filesystem</span> 51 </nav> 52 <section class="post-content"> 53 <h2>Changing Directories</h2> 54 <p> 55 cd = change directory 56 </p> 57 <blockquote> 58 $ cd directory<br> 59 $ cd /path/to/directory/ 60 </blockquote> 61 <p> 62 Changing back to locations "upwards" 63 </p> 64 <blockquote> 65 To go back one folder, e.g. go from /var/www to /var:<br> 66 $ cd ..<br> 67 To go back to your home folder or root folder:<br> 68 $ cd 69 </blockquote> 70 <h2>Listing Files</h2> 71 <p> 72 ls = list 73 </p> 74 <blockquote> 75 $ ls<br> 76 $ ls /path/to/specific/directory 77 </blockquote> 78 <p> 79 There are also some options to the "ls" command, 80 to show more details like hidden files or 81 file permissions. For example: 82 </p> 83 <blockquote> 84 $ ls -a<br> 85 $ ls -l 86 </blockquote> 87 <h2>Where am I? Print Working Directory</h2> 88 <p> 89 pwd = print working directory 90 </p> 91 <p> 92 This will show you the path to the directory 93 you are currently working in. 94 </p> 95 <blockquote> 96 $ pwd 97 </blockquote> 98 <h2>Creating Files</h2> 99 <p> 100 We can create files by typing "touch" followed by the filename in the shell. 101 Example to create "file.txt": 102 </p> 103 <blockquote> 104 $ touch file.txt 105 </blockquote> 106 </section> 107 <footer class="post-footer"> 108 <a href="/wiki/linux/A1linux.html" class="cta-button">← Back</a> 109 </footer> 110 </main> 111 </body> 112 </html>