Command Line 101 : Basic Terminal
Category : DevOps Tag : shellscript 101series
Sept. 30, 2020, 7 p.m.

Short Description :
Quick tips for terminal command which helps beginners
source : Tak, iterm2

<p>If you are a beginner of a data scientist, you might wonder what PC environment we should prepare. This series is to answer for those question.&nbsp; This post is to focus on basic terminal CLI cheat sheet.</p><p><br></p><p>1. Move current directly</p><pre>cd &lt;directory or path&gt; cd ~ : home cd / : root</pre><p>2. Look at file system</p><pre>ls ls -a : show hidden file such as .gitignore</pre><p>3. Move path/change name for file or folder</p><pre>mv &lt;old file name/path&gt; &lt;new file name/path&gt; mv -r &lt;old folder name/path&gt; &lt;new folder name/path&gt;</pre><p>4. Copy file or folder</p><pre>cp &lt;old file name/path&gt; &lt;new file name/path&gt; cp -r &lt;old folder name/path&gt; &lt;new folder name/path&gt;</pre><p>5. Create directoly/folder</p><pre>mkdir &lt;directory name&gt;</pre><p>6. Remove directory or file</p><pre>rm &lt;file name&gt; rm -r &lt;folder name&gt;</pre><p>7. quick server for static site using python, ctrl+c for stop</p><pre>python3 -m http.server &lt;port&gt; &amp;.</pre><p>8. quick look inside of file</p><pre>cat &lt;file name&gt;</pre><p>9. show filesystem</p><pre>df</pre><p>10. top 10 app/system usage</p><pre>top -n 10</pre><p>11. print current working directoly</p><pre>pwd</pre><p>12. PATH link</p><pre>$PATH</pre><p>13. create a path</p><pre>ln</pre>


<< Back to Blog Posts
Back to Home

Related Posts

Mac environment for data scientist : App List
Nov 28 2020
test
How to deploy Dash/Python to Heroku
Nov 24 2020
Quick tips on how to deploy plotly dash by python to Heroku server. Also explore CICD from github
Command Line 101 : vim ? nano?
Nov 28 2020
test
React app deployment : Firebase
Dec 8 2020
How to deploy react app to cloud. Using firebase as an example



© DATAK 2024