Linux Basic Command Lines

 Here is a guide to some basic command lines used which will help you to become more familiar with Linux. 


Table of contents 
  • What is Linux?
  • How to install Linux?
  • Basic Command Lines


What is Linux? 
Linux is an open-source operating system that offers a wide range of functionalities. It is perfect for everyday tasks like browsing, emailing, photo management, financial management, and much more.


How to install Linux? 
The general steps to installing Linux on your PC are as follows:

Pick a Linux distribution from the numerous that are available; each has special features and advantages. Ubuntu, Fedora, and Debian 123 are a few well-liked choices.

Download the distribution: After making your decision, you can get the distribution from the official website. The majority of distributions include numerous download methods, such as ISO files and USB images 123.

Make installation media: You must make installation media after downloading the distribution. You can accomplish this with a DVD 123 or USB drive.

Begin by starting the installation media: Restarting your computer after inserting the installation disc is recommended. You might have to modify the BIOS settings for the boot order.

Install Linux: You can start the installation procedure after starting your computer from the installation disc. Depending on the distribution you've chosen, the precise procedures will change, but most distributions provide a graphical installer that will walk you through the procedure.


Basic Command Lines 

1. The Sudo command allows a user to execute a command as a superuser.
     
        sudo command



2. To display help pages of < command >.  (man = manual)

        man command 



3. To install anything 

    sudo apt install appname


Reminder: Before installing anything, you have to update your repositories. 

    sudo apt-get update 
    sudo apt update 



4. To know where you are currently working at? (Print Working Directory)

        pwd 



5. List all the files in your current working directory. 

       ls 



6. Gives us a nice list of all the files in our current working directory.
    
       ls -l



7. To see hidden stuff in your current working directory. 

       ls -al 






8. Navigate to home directory

      cd  or  cd ~




9. Change directory.

If you don't want to be where you are working at, this command will tell you where you want to go. 

      cd /



10. Move back one directory 

                cd ..





11. Exit a command or quit a command 

    exit command

OR

    quit 



12. Shutting down the virtual machine 

        -This will shut down your virtual machine in about one minute 
                sudo shutdown 

        -This will shut down your virtual machine now 
                sudo shutdown -h now 




13. To help you get stuff from the Internet 

    wget link 

for example:  
wget https://raw.githubusercontent.com/hanxuser/random/main/fishnode




14. To search for a file 

        find filename




15. Searching for files

   -Look in all files 
      find /
   
      -Specifying the name of a file 
      find / -name "filename











Comments

Popular posts from this blog

UPLOADING & CLONING ON GITHUB

BetterCap

Cryptography