2026-01-10 00:23:33 -05:00
import { _ as o , c as t , o as a , ah as n , ar as s , as as r , at as i , au as d , av as h , aw as p , ax as l } from "./chunks/framework.j4Nev8bF.js" ; const k = JSON . parse ( '{"title":"Intro to Terminal","description":"","frontmatter":{},"headers":[],"relativePath":"rebel_coding/termintro.md","filePath":"rebel_coding/termintro.md"}' ) , c = { name : "rebel_coding/termintro.md" } ; function m ( u , e , w , g , y , b ) { return a ( ) , t ( "div" , null , [ ... e [ 0 ] || ( e [ 0 ] = [ n ( ` <h1 id="intro-to-terminal" tabindex="-1">Intro to Terminal <a class="header-anchor" href="#intro-to-terminal" aria-label="Permalink to “Intro to Terminal”"> </a></h1><hr><p>If you are using a Mac, use Spotlight to search for the Terminal program. Open it up and begin following along; all of these instructions will work the same for you. If you are using Windows, I’ m sorry, but we won’ t delve into the differences Powershell employs. Rather I recommend you purchase a one month subscription to Rebel Labs, where you can use the Linux terminal provided.</p><p><code>whoami</code> & <code>pwd</code> are two of the first commands one ought learn. Type each command into the terminal and press Enter.</p><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark" style="--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e;" tabindex="0" dir="ltr"><code><span class="line"><span> $ whoami</span></span>
2026-01-09 23:05:52 -05:00
< span class = "line" > < span > Username < / s p a n > < / s p a n >
< span class = "line" > < span > $ pwd < / s p a n > < / s p a n >
< span class = "line" > < span > / h o m e / U s e r n a m e < / s p a n > < / s p a n > < / c o d e > < / p r e > < / d i v > < p > T h e f i r s t c o m m a n d p r o v i d e s a n o b v i o u s a n s w e r , a n d t h e s e c o n d i s o b v i o u s e n o u g h o n c e y o u k n o w t h a t i t s t a n d s f o r “ p r i n t w o r k d i r e c t o r y ” . < / p > < p > T h o u g h f o r a l o n g t i m e , I t h o u g h t i t m e a n t “ p r e s e n t w o r k i n g d i r e c t o r y ” , b e c a u s e t h a t j u s t s e e m s s o m u c h m o r e d e s c r i p t i v e t o m e . < / p > < p > N o n e t h e l e s s , w e a n s w e r t h e q u e s t i o n , “ W h e r e a m I ? ” < / p > < p > I n a l l l i k e l i h o o d , y o u s h o u l d b e i n y o u r “ h o m e / { u s e r n a m e } ” d i r e c t o r y . < / p > < p > A n d i f y o u ’ r e i n R e b e l L a b s ( R L ) , t h a t ’ s w h e r e y o u w i l l s t a r t ! < / p > < p > N e x t , l e t ’ s t a k e a l o o k a r o u n d ~ b y t y p i n g t h e c o m m a n d < c o d e > l s < / c o d e > a n d p r e s s i n g E n t e r . < / p > < p > T h e < c o d e > l s < / c o d e > c o m m a n d l i s t s t h e i t e m s i n o u r < e m > p r e s e n t w o r k i n g d i r e c t o r y < / e m > . < / p > < p > C o o l , i f w e a r e i n t h e R L w e s h o u l d s e e a n o t e b o o k s f o l d e r . B u t l e t ’ s b a c k u p o n e m o m e n t ~ < / p > < p > I w a n t t o t e l l y o u a b o u t < s t r o n g > c o m m a n d f l a g s < / s t r o n g > . < / p > < p > W e j u s t u s e d t h r e e c o m m a n d s , < c o d e > w h o a m i < / c o d e > , < c o d e > p w d < / c o d e > , a n d < c o d e > l s < / c o d e > . T h e l a s t o f w h i c h h a s s o m e o t h e r c a p a b i l i t i e s t h a t c a n b e a c c e s s e d u s i n g c o m m a n d p r o p e r t i e s , i n d i c a t e d b y < e m > f l a g s < / e m > . < / p > < p > I n s t e a d o f j u s t t y p i n g < c o d e > l s < / c o d e > i n t o t h e t e r m i n a l , t y p e < c o d e > l s - l < / c o d e > a n d p r e s s E n t e r ! < / p > < p > H u z z a h ~ m o r e d e t a i l s . < / p > < p > W h a t d o t h e y a l l m e a n ? ! ? W e ’ r e n o t g o i n g t o c o v e r t h a t n o w , p e e p t h e a p p e n d i x . < / p > < p > W e ’ r e g o n n a k e e p m o v i n ’ a l o n g . T h e i m p o r t a n t t h i n g t o n o t e i s t h a t t h i s i s h o w c o m m a n d f l a g s w o r k , t h e y n e e d a t l e a s t o n e - d a s h , s o m e t i m e s t w o , t o p r e c e d e t h e m . < / p > < p > N e x t c o m m a n d : < c o d e > c d < / c o d e > < / p > < p > I f y o u j u s t t y p e d t h a t i n a n d p r e s s e d E n t e r , n o t h i n g w i l l h a p p e n . < / p > < p > W e n e e d t o a d d a d e s t i n a t i o n , a s < c o d e > c d < / c o d e > s t a n d s f o r < e m > c h a n g e d i r e c t o r y < / e m > … t y p e < c o d e > c d n o t e b o o k s < / c o d e > a n d p r e s s E n t e r . < / p > < p > L e t ’ s u s e < c o d e > l s < / c o d e > o r < c o d e > l s - l < / c o d e > a g a i n , t o t a k e a l o o k a t w h a t w e g o t … < / p > < p > I f y o u ’ r e i n t h e R L , t h e n y o u o u g h t t o s e e n o t h i n g . A n d i f y o u ’ r e f o l l o w i n g a l o n g o n y o u r o w n c o m p u t e r … f r o m y o u r h o m e d i r e c t o r y l e t s f i r s t u s e t h e < c o d e > m k d i r < / c o d e > t o m a k e a n e w d i r e c t o r y c a l l e d R C N o t e b o o k s , o r w h a t e v e r n a m e y o u l i k e . < / p > < p > < c o d e > m k d i r R C N o t e b o o k s < / c o d e > a n d p r e s s E n t e r . < / p > < p > J u s t l i k e < c o d e > c d < / c o d e > w e n e e d e d t o p r o v i d e a n a m e f o r t h e d i r e c t o r y t o b e m a d e . < / p > < p > T h e n w e c a n < c o d e > c d < / c o d e > i n t o R C N o t e b o o k s a s s h o w n a b o v e , a n d o n w a r d w e c o n t i n u e . < / p > < p > < i m g s r c = " ` + s + ' " a l t = " a l t t e x t " > < / p > < h 1 i d = " s s h - h i d d e n - f o l d e r s " t a b i n d e x = " - 1 " > S S H & a m p ; H i d d e n F o l d e r s < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # s s h - h i d d e n - f o l d e r s " a r i a - l a b e l = " P e r m a l i n k t o “ S S H & a m p ; H i d d e n F o l d e r s ” " > < / a > < / h 1 > < h r > < p > I m a d e a f u n n y , w e n e e d t o r e v e r s e … w h i c h i s a g r e a t c h a n c e t o l e a r n h o w w e d o t h i s i n t h e c o m m a n d l i n e ? ? < / p > < p > T h o u g h f i r s t o f f , l e t ’ s m a k e a m e n t a l m o d e l . < / p > < p > I l i k e t o c o n s i d e r t h e f i l e s y s t e m l i k e c h u t e s a n d l a d d e r s ; u p a n d d o w n . < / p > < p > W e o f t e n s t a r t r i g h t i n t h e m i d d l e . i n o u r h o m e d i r e c t o r y / h o m e / u s e r . A n d e v e r y t h i n g w e i n i t i a l l y a c c e s s i s < e m > d o w n < / e m > t h e f i l e s y s t e m f r o m t h i s l o c a t i o n : / h o m e / u s e r / n o t e b o o k s . / h o m e / u s e r / D e s k t o p , / h o m e / u s e r / D o w n l o a d s , e t c . < / p > < p > R e v e r s i n g d i r e c t i o n s w o u l d m e a n t o t r a v e l b a c k < e m > u p < / e m > t h e f i l e s t a c k . W e u s e d o u b l e - d o t s t o d o t h i s , a s f o l l o w s : < / p > < p > < c o d e > c d . . < / c o d e > a n d p r e s s E n t e r . < / p > < p > D o n ’ t f o r g e t < e m > b o t h d o t s < / e m > ! < / p > < p > A n d w e s h o u l d n o w b e b a c k i n o u r h o m e d i r e c t o r y , i f w e u s e t h e c o m m a n d < c o d e > l s < / c o d e > w e s h o u l d s e e o u r N o t e b o o k s d i r e c t o r y ; o r u s e t h e < c o d e > p w d < / c o d e > c o m m a n d t o c o n f i r m y o u r l o c a t i o n . < / p > < p > N o w w e m a k e a n S S H k e y , b u t w h a t d o e s t h a t e v e n m e a n ? < / p > < p > < i m g s r c = " ' + r + ' " a l t = " a l t t e x t " > < / p > < p > < s t r o n g > S S H - S e c u r e S h e l l < / s t r o n g > < / p > < p > R i g h t n o w w e ’ r e u s i n g t h e t e r m i n a l , o r c o m m a n d l i n e i n t e r f a c e , a n d y o u r a c c o u n t i s c o n s i d e r e d a < e m > s h e l l < / e m > a c c o u n t ; w h i l e y o u h a v e < e m > s h e l l < / e m > a c c e s s . S h e l l b e i n g a n o t h e r w o r d f o r t h e < e m > t e r m i n a l < / e m > . < / p > < p > P r e s u m a b l y y o u r a c c o u n t i s p r o t e c t e d b y a p a s s w o r d ; a n d i t ’ s a r e a l l y g o o d o n e , o r i t i s n ’ t ; t h a t ’ s n o t i m m e d i a t e l y t h e p o i n t . < / p > < p > T h e p o i n t i s t h a t e v e r y s i n g l e t i m e y o u w a n t t o g e t o r s e n d p r o j e c t f i l e s t o a r e p o s i t o r y ; y o u d o n ’ t w a n t t o
< / c o d e > < / p r e > < p > L a s t c o m m a n d , m a k e s u r e t o u s e y o u r G i t H u b u s e r n a m e : < / p > < p r e > < c o d e > c p - r C l a s s w o r k / u s e r n a m e . g i t h u b . i o { u s e r n a m e } . g i t h u b . i o
< / c o d e > < / p r e > < p > C a n y o u t e l l w h a t y o u j u s t d i d ? < / p > < p > < i m g s r c = " ` + l + ' " a l t = " a l t _ t e x t " > < / p > < h 1 i d = " a d d i t i o n a l - s u p p o r t " t a b i n d e x = " - 1 " > A d d i t i o n a l S u p p o r t < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # a d d i t i o n a l - s u p p o r t " a r i a - l a b e l = " P e r m a l i n k t o “ A d d i t i o n a l S u p p o r t ” " > < / a > < / h 1 > < h r > < p > T h e r e m a i n d e r o f t h i s b o o k b u i l d s o f f o f t h e m a t e r i a l i n t h i s r e p o s i t o r y . I f y o u a r e h a v i n g A N Y t r o u b l e , p l e a s e r e a c h o u t t o < a h r e f = " m a i l t o : c a n i n @ d r e a m f r e e l y . o r g " t a r g e t = " _ b l a n k " r e l = " n o r e f e r r e r " > c a n i n @ d r e a m f r e e l y . o r g < / a > ~ < / p > < p > T h e l a s t c o m m a n d w e r a n c o p i e d t e m p l a t e f i l e s f o r y o u r H T M L w e b s i t e . I f y o u ’ r e u s i n g G i t H u b . c o m y o u c a n p u b l i s h y o u r w e b s i t e t o a g i t h u b . i o a d d r e s s t h a t u s e s y o u r u s e r n a m e . < / p > < p > W e & # 3 9 ; l l c o v e r t h i s p r o c e s s a f t e r w e & # 3 9 ; v e b e e n i n t r o d u c e d t o H T M L & a m p ; C S S . < / p > ' , 9 8 ) ] ) ] ) } c o n s t v = o ( c , [ [ " r e n d e r " , m ] ] ) ; e x p o r t { k a s _ _ p a g e D a t a , v a s d e f a u l t } ;