<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Luis Gomez</title>
    <description>The latest articles on DEV Community by Luis Gomez (@canodev).</description>
    <link>https://dev.to/canodev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F826384%2F19d62911-a77f-4328-b911-d6bbd65fce6e.png</url>
      <title>DEV Community: Luis Gomez</title>
      <link>https://dev.to/canodev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/canodev"/>
    <language>en</language>
    <item>
      <title>Learning Terminal (Notes) Day #4 [Standard output]</title>
      <dc:creator>Luis Gomez</dc:creator>
      <pubDate>Sun, 13 Mar 2022 22:09:35 +0000</pubDate>
      <link>https://dev.to/canodev/learning-terminal-notes-day-4-standard-output-46gj</link>
      <guid>https://dev.to/canodev/learning-terminal-notes-day-4-standard-output-46gj</guid>
      <description>&lt;h2&gt;
  
  
  Standard output
&lt;/h2&gt;

&lt;p&gt;I just learned something very cool! You can save the command result just typing &lt;code&gt;&amp;gt; name_archive.txt&lt;/code&gt; next to the command, ok this is not work for every command but works with the commands that provide a text output.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: If you want a list of your directories and save what do you have in just type &lt;code&gt;ls directory_name &amp;gt; file_name.txt&lt;/code&gt; (&lt;em&gt;I've just learned how to specific code here too ^^&lt;/em&gt;)&lt;/p&gt;

&lt;p&gt;This command overwrite the text file every time you use it (if use the same file name) if you want to add text but no overwrite use the operator &lt;em&gt;&amp;gt;&amp;gt;&lt;/em&gt; instead of &lt;em&gt;&amp;gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://linuxjourney.com/lesson/stdout-standard-out-redirect"&gt;Here let you more information about all of this&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Pipe operator |
&lt;/h2&gt;

&lt;p&gt;Pipe operator allows you run a command that his standard out put change as standard input to another command and this allow us to make another features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;echo&lt;/strong&gt;: Generate an standard output from anything we type in terminal&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: &lt;code&gt;echo "Hello World"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;With standard out put we can save the command's result to a file text but with pipe we can get that result and give it to another command like cat to visualize the result in out console command without save it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;:  &lt;code&gt;ls -lh | less&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And if we want to save the result in another file like before but after seeing it with less we just to have add another pipe operator but with command &lt;strong&gt;tee&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: &lt;code&gt;ls -lh | tee output.txt | less&lt;/code&gt;&lt;br&gt;
(Like this generate the file first and then visualize it with less)&lt;/p&gt;

&lt;p&gt;We can add filters too like sorting filter&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: &lt;code&gt;ls -lh | sort | tee output.txt | less&lt;/code&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>linux</category>
      <category>terminal</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Learning Terminal (Notes) Day #3</title>
      <dc:creator>Luis Gomez</dc:creator>
      <pubDate>Fri, 11 Mar 2022 21:00:10 +0000</pubDate>
      <link>https://dev.to/canodev/learning-terminal-notes-day-3-567b</link>
      <guid>https://dev.to/canodev/learning-terminal-notes-day-3-567b</guid>
      <description>&lt;h2&gt;
  
  
  Exploring Our File's Content
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Commands
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;head&lt;/strong&gt;: Show us the first ten lines of any text file, if you want to see more than 10 lines you can use the parameter &lt;strong&gt;&lt;em&gt;-n&lt;/em&gt;&lt;/strong&gt; followed by the name of lines that you want.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;tail&lt;/strong&gt;: Like head show us a chunk of the text file but with the difference that show us the last 10 lines and you can use the parameter &lt;strong&gt;&lt;em&gt;-n&lt;/em&gt;&lt;/strong&gt; too.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;less&lt;/strong&gt;: &lt;em&gt;Less&lt;/em&gt; show us the file in a interactive way by console, in this kind of view you can type / and type words that you want to find. Like a searching engine.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;xdg-open&lt;/strong&gt;: This command open a file with your Text Editor by Default&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is a command?
&lt;/h2&gt;

&lt;p&gt;A command can be 4 things:&lt;/p&gt;

&lt;p&gt;1- An Executable Program&lt;br&gt;
2- An Shell's Utility&lt;br&gt;
3- A Shell's function&lt;br&gt;
4- An Alias&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;type&lt;/strong&gt;: Describe us the type of command that you give, just type the command next to the command type. &lt;strong&gt;Example&lt;/strong&gt;: &lt;em&gt;type ls&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;alias&lt;/strong&gt;: With this we can create an alias for a specific command and make easy the task that we want to do &lt;strong&gt;Example&lt;/strong&gt;: &lt;em&gt;l="ls -lh" this gonna show a directory in list AND with a human lecture&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WARNING&lt;/strong&gt;: &lt;em&gt;Alias are temporary, when you close the terminal and run a new one the alias is gonna disappear&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;help&lt;/strong&gt;: Brings you information about how to use and works a command. &lt;strong&gt;Example&lt;/strong&gt;: &lt;em&gt;help cd.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;man&lt;/strong&gt;: Brings you an manual about command that you want to know. &lt;strong&gt;Example&lt;/strong&gt;: &lt;em&gt;man cd.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;info&lt;/strong&gt;: Works like man but with an different interface.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;whatis&lt;/strong&gt;: Show information about command but with less details. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wildcards
&lt;/h2&gt;

&lt;p&gt;Wildcards in summary is an advanced search using &lt;em&gt;ls&lt;/em&gt; command. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to use&lt;/strong&gt;: Type the command and the special parameters that you want to get.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;To search for txt files&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ls *.txt&lt;/code&gt;&lt;br&gt;
&lt;em&gt;The asterisk means &lt;strong&gt;all&lt;/strong&gt; (I've seen that use asterisk to mean to &lt;strong&gt;all&lt;/strong&gt; in computer science) and next you type the kind of file that you want.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;There are a lot of functions with wildcards more information &lt;a href="https://linuxhint.com/bash_wildcard_tutorial/"&gt;here&lt;/a&gt;.&lt;br&gt;
&lt;em&gt;There are too many uses for wildcards and depend your needs so I just gonna let the basics for now.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>linux</category>
      <category>productivity</category>
      <category>terminal</category>
    </item>
    <item>
      <title>Learning Terminal (Notes) Day #2</title>
      <dc:creator>Luis Gomez</dc:creator>
      <pubDate>Wed, 09 Mar 2022 16:43:27 +0000</pubDate>
      <link>https://dev.to/canodev/learning-terminal-notes-day-2-1k9c</link>
      <guid>https://dev.to/canodev/learning-terminal-notes-day-2-1k9c</guid>
      <description>&lt;h1&gt;
  
  
  Handle Files &amp;amp; Directories
&lt;/h1&gt;

&lt;p&gt;There are a few parameters that can be useful with command &lt;em&gt;ls&lt;/em&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;ls&lt;/strong&gt;: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;S: This modifier give us the list of files and directories ordered by &lt;em&gt;Size&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;r: Sort the list in reverse&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;-Tree: Show our whole directories as tree structure&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;-L: The &lt;em&gt;L&lt;/em&gt; parameter show our tree with the number of levels that we specify &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uK6L-zMA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5z9zuh2lsx6ud4nb5tv1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uK6L-zMA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5z9zuh2lsx6ud4nb5tv1.png" alt="command tree preview" width="667" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;mkdir&lt;/strong&gt;: with this command we can create a new directory or commonly called a folder just we have to type the name after the command and if you want that the folder's name have spaces you have to type between quotation marks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;touch&lt;/strong&gt;: Create a new file&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;We can create as much files and directories as we want at once just typing the name of the folders or files after the previous one.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;cp&lt;/strong&gt;: Command copy as you can imagine this command allow us to copy files just type the name of the file to copy and the name that you want the copy have also you can specify the directory where you want to copy save.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;mv&lt;/strong&gt;: It works like copy but moving the files &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;rm&lt;/strong&gt;: WARNING Take care of this command you can broke your whole Operative System, you can delete files with this command and you can delete directories with parameter -r (&lt;em&gt;recursive&lt;/em&gt;). &lt;em&gt;If you type the paremeter -ir you can review and decide if you want to delete the files&lt;/em&gt;. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>productivity</category>
      <category>terminal</category>
      <category>beginners</category>
      <category>linux</category>
    </item>
    <item>
      <title>Learning Terminal (Notes)</title>
      <dc:creator>Luis Gomez</dc:creator>
      <pubDate>Tue, 08 Mar 2022 16:55:29 +0000</pubDate>
      <link>https://dev.to/canodev/learning-terminal-notes-2859</link>
      <guid>https://dev.to/canodev/learning-terminal-notes-2859</guid>
      <description>&lt;p&gt;So the &lt;strong&gt;terminal&lt;/strong&gt;, That scary place that no one wants to see.&lt;br&gt;
Take it easy is not that bad as seems. It's just different.&lt;/p&gt;

&lt;p&gt;What is the terminal?&lt;br&gt;
An terminal is an user graphical interface where you can give  specific orders to the computer probably you have seen it in a lot of movies and series about hackers.&lt;/p&gt;

&lt;p&gt;It looks like this:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WhYXn43K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://upload.wikimedia.org/wikipedia/commons/2/29/Linux_command-line._Bash._GNOME_Terminal._screenshot.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WhYXn43K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://upload.wikimedia.org/wikipedia/commons/2/29/Linux_command-line._Bash._GNOME_Terminal._screenshot.png" alt="Bash Terminal" width="880" height="660"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The terminal is just the interface(a window) inside can run a &lt;em&gt;shell&lt;/em&gt; where we can type and execute the commands, there are different types of shells such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bournshell&lt;/li&gt;
&lt;li&gt;Bash Shell&lt;/li&gt;
&lt;li&gt;Z Shell (The most popular and included in macbooks from 2019)&lt;/li&gt;
&lt;li&gt;C Shell &lt;/li&gt;
&lt;li&gt;Korn Shell&lt;/li&gt;
&lt;li&gt;Fish Shell&lt;/li&gt;
&lt;li&gt;PowerShell (For windows)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the firs thing that we have to know is how to browse in our file system, you know the window with folders, files and all our stuff in a computer but in the terminal.&lt;/p&gt;

&lt;p&gt;The file system works as a tree branching out, and you can navigate with commands. &lt;a href="https://www.freecodecamp.org/news/file-systems-architecture-explained/"&gt;More information by freecodecamp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Basic commands:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;ls&lt;/strong&gt;: show the files in our directory&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;We can add modifiers to our commands like -l this modifier or parameter is for show our directory more detailed and as a list&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;-h is for a &lt;strong&gt;human lecture&lt;/strong&gt; h for human (more legible)&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;cd&lt;/strong&gt;: (change directory) no needed more description right?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This command need a parameter this parameter is the directory that we want to go so forward the command we have to write the directory wished. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: cd /Downloads&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;clear&lt;/strong&gt;: clean our screen &lt;em&gt;shortcut&lt;/em&gt;: ctrl + l or command + l&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;cd&lt;/strong&gt;: if you type just cd this command gonna send you to your home directory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;cd&lt;/strong&gt;: .. if you type two dots after cd that gonna return a directory back&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;pwd&lt;/strong&gt;: Print Working Directory&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;file&lt;/strong&gt;: This one describe a file. You have to type the name of the file after the command file with his extension.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://unsplash.com/photos/y5_mFlLMwJk"&gt;Credits to Cover Image&lt;/a&gt; &lt;/p&gt;

</description>
      <category>linux</category>
      <category>beginners</category>
      <category>notes</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
