switchon@lavalamp.biz
+27(0) 83 419 4851 / +27(0) 21 036 1165
Application & software development
Get A Quote

    • Home
    • Services
      • Application & software development
      • Outsourced software development
      • Project based resourcing
      • Digital marketing & consulting
      • Graphic design & consulting
      • UI / UX design & consulting
      • Recruitment services
      • Lease an expert
    • About
      • How we work
      • NBConsult Group
      • Partners
      • Lightbox Digital
    • Blog
    • Join us
    • Contact

    • Home
    • Services
      • Application & software development
      • Outsourced software development
      • Project based resourcing
      • Digital marketing & consulting
      • Graphic design & consulting
      • UI / UX design & consulting
      • Recruitment services
      • Lease an expert
    • About
      • How we work
      • NBConsult Group
      • Partners
      • Lightbox Digital
    • Blog
    • Join us
    • Contact

    • Home
    • Services
      • Application & software development
      • Outsourced software development
      • Project based resourcing
      • Digital marketing & consulting
      • Graphic design & consulting
      • UI / UX design & consulting
      • Recruitment services
      • Lease an expert
    • About
      • How we work
      • NBConsult Group
      • Partners
      • Lightbox Digital
    • Blog
    • Join us
    • Contact

    • Home
    • Services
      • Application & software development
      • Outsourced software development
      • Project based resourcing
      • Digital marketing & consulting
      • Graphic design & consulting
      • UI / UX design & consulting
      • Recruitment services
      • Lease an expert
    • About
      • How we work
      • NBConsult Group
      • Partners
      • Lightbox Digital
    • Blog
    • Join us
    • Contact
    string value
    Many Ways To Skin A Cat – If A Cat Was A String Value
    Mar 28, 2022
    figure it out
    You’ll Figure It Out…
    Apr 13, 2022

    Help! I’ve Had To SSH Into A Linux Box And Don’t Know What To Do

    Categories
    • Software Development
    • Web Development
    Tags
    • command prompt
    • linux
    • putty
    • root directory
    • secure shell session
    • ssh
    • terminal
    • terminal applications
    ubuntu
    ubuntu

    So, your team lead or boss has asked you to SSH into a Linux box at work and it's your first time. You've gone ahead and googled how to use PuTTY and are in a secure shell session. Now what? You've used Command Prompt a couple of times, but nothing has prepared you for this. You've tried typing in dir to see what is in the folder you've landed in, and it's worked. You try the trusty ol' cd C:\ and ERROR. Why am I doing this? Linux is for basement dwellers who have been using a computer longer than you've been alive, it's a scary place. Wrong! You're a fellow geek/nerd and you can do this.

    While Windows uses the \ as a directory structure delimiter Unix based operating systems use /. Where C:\ would usually be the root of your main OS drive in Ubuntu and other Linux distributions / is the root directory of everything on the machine. cd / in Linux is kind of (but not really) the equivalent of cd C:\ in command prompt. Have a look at this video to getting a quick 100s overview of the Linux file system structure. You're now in the root directory, we've established earlier that in Ubuntu dir will show you the contents of the directory. In Unix based OSs we use ls to list contents.

    In most terminal applications you can apply "flags" to your operations, this is no different to the ls command. To this we could add -l like ls -l to show the directory contents in a list, or single line per item in the directory. -a will show you hidden files/folders in the directory too. There are many other "flags" that we could apply to ls, to see them all as well as an over view of the list contents we can use man. man [program] in the Unix terminal followed by the program you specify will open up the "manual" for that program.

    When you're in your terminal you will see the blinking cursor following user@host: directory$. To break this down the user is the user that is logged into the system, the host is the system that you're on, and directory is where you are currently in the file system. ~ is the "home" directory for your current user. pwd or "print working directory" will output the full path to where you are currently located in the filesystem. cd ~ will take you to your home directory.


    Read Help! I’ve Had To SSH Into A Linux Box (Part 2).

    Contact us


      Related posts:

      ubuntuHelp! I’ve Had To SSH Into A Linux Box (Part 2) ubuntuHelp! I’ve Had To SSH Into A Linux Box For The First Time (Part 3) laravel envoyer and forgeProvisioning A New Digital Ocean Server With Laravel Forge, And Deploying Code With Laravel Envoyer how to deploy your app/website on herokuHow To Deploy Your App/Website On Heroku
      Share
      0
      Nicholas Driver
      Nicholas Driver
      Nicholas is a chemistry graduate who has worked previously as a project manager, managing director, and caregiver, but not as a chemist. After moving into software engineering in 2018 he has worked on big data, business intelligence, and various full-stack projects in a variety of different languages, platforms and frameworks.

      Leave a Reply Cancel reply

      Your email address will not be published. Required fields are marked *

      Lava Lamp Lab


      Like technology, a lava lamp constantly changes form, producing new conditions with every passing moment



      lava lamp lab facebook   lava lamp lab twitter   lava lamp lab linkedin   lava lamp lab instgram

      Services


      Application & software development

      Outsourced software development

      Project based resourcing

      Digital marketing & consulting

      Graphic design & consulting

      UI / UX design & consulting

      Contact Us


      +27(0) 83 419 4851

      +27(0) 21 036 1165


      switchon@lavalamp.biz


      Unit 4 Monaco Square,
      14 Church Street,
      Durbanville,
      Cape Town, 7550

      NBConsult Group


      nbconsult
      nbconnect msp
      nbclearning
      river broadband
      designer needed
      © 2023 Lava Lamp Lab (Pty) Ltd | All Rights Reserved | Privacy Policy
      Contact us now

        Application & software development

          Outsourced software development

            Project based resourcing

              Digital marketing & consulting

                Graphic design & consulting

                  UI/UX design & consulting

                    Lease an expert

                      Recruitment services

                        We are using cookies to give you the best experience on our website.

                        You can find out more about which cookies we are using or switch them off in settings.

                        Lava Lamp Lab
                        Powered by  GDPR Cookie Compliance
                        Privacy Overview

                        This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

                        Strictly Necessary Cookies

                        Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

                        If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

                        3rd Party Cookies

                        This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.

                        Keeping this cookie enabled helps us to improve our website.

                        Please enable Strictly Necessary Cookies first so that we can save your preferences!

                        Cookie Policy

                        More information about our Cookie Policy