User Tools

Site Tools


howto:linux_basics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howto:linux_basics [2023/04/18 23:13] – created jnilssonhowto:linux_basics [2024/06/17 21:07] (current) – [Self-paced online lessons] jnilsson
Line 1: Line 1:
 ====== Intro to using Linux via a command-line interface ====== ====== Intro to using Linux via a command-line interface ======
  
-The CLI, or command-line interface, is a very powerful way to interact with any computer. In Linux especially, the CLI is often the primary way to perform tasks. Additionally, you can write scripts to automate tasks over the command-line. So even when there is a GUI option, if you want to automate a task, learning how to do it using the command-line is +The CLI, or command-line interface, is a very powerful way to interact with any computer. In Linux especially, the CLI is often the primary way to perform tasks. Additionally, you can write scripts to automate tasks over the command-line. So even when there is a GUI option, if you want to automate a task, learning how to do it using the command-line is essential.
  
 A terminal is the actual application that you use (i.e. Terminal.app, cmd.exe, PowerShell, PuTTY, etc); it is the command-line environment on your computer from which you can use SSH to access the remote linux server. A terminal is the actual application that you use (i.e. Terminal.app, cmd.exe, PowerShell, PuTTY, etc); it is the command-line environment on your computer from which you can use SSH to access the remote linux server.
Line 44: Line 44:
 | <code>cd myfolder/ | <code>cd myfolder/
 cd ../</code> | Change directory to another folder in your current folder or go up one directory to the parent folder  | cd ../</code> | Change directory to another folder in your current folder or go up one directory to the parent folder  |
-| <code>cd /data/my/example/folder/</code> | Change directory to another folder outside your current directory (notice the leading / indicating an absolute path)  |+| <code>cd /data/my/example/folder/</code> | Change directory to another folder outside your current directory. Notice the leading ''/'' indicating an absolute path(([[https://swcarpentry.github.io/shell-novice/02-filedir/index.html|see this link]] for more information about absolute vs relative paths and how to navigate directories))  |
 | <code>cd</code> | Change directory back to your home directory  | | <code>cd</code> | Change directory back to your home directory  |
 | <code>pwd</code> | Print your current working directory  | | <code>pwd</code> | Print your current working directory  |
Line 65: Line 65:
 ===== Self-paced online lessons ===== ===== Self-paced online lessons =====
  
-There is a lot more you can do. This brief overview is just an idea to get you started. I highly recommend the link below for additional resources. They have lessons that you can work through on your own to become more familiar with all the above commands and go even more in depth:+There is a lot more you can do. This brief overview is just an idea to get you started. I highly recommend the links below for additional resources. They have lessons that you can work through on your own to become more familiar with all the above commands and go even more in depth:
  
   * [[https://swcarpentry.github.io/shell-novice/|Software Carpentry - Shell Novice]]   * [[https://swcarpentry.github.io/shell-novice/|Software Carpentry - Shell Novice]]
 +  * [[https://ubuntu.com/tutorials/command-line-for-beginners#3-opening-a-terminal|Ubuntu - The Linux command line for beginners]]
howto/linux_basics.1681859634.txt.gz · Last modified: 2023/04/18 23:13 by jnilsson