Learning Linux (Practise Session 01) 

Learning Linux (Practise Session 01) 

No alt text provided for this image

Learning Linux (Practise Session 01) 

1) Creating a Linux Environment

It is important to have an Environment to practice the commands, without practice, it's difficult to understand how the commands are getting executed.

First, let's create a Linux Like Environment on your WindowsOS Machine. 

Try Cygwin in your Windows: "https://www.cygwin.com/setup-x86_64.exe" (Download, Click Next Next, install & use the app for running the commands)

OR

Below are some of the Browser-Based Free Linux Environments where you can utilize the service instead of cygwin (I cannot assure about the credibility of these sources; better use them via Private Browsing / Incognito Mode)

{{ 

http://copy.sh/v86/?profile=linux26

(If the above source is not user-friendly, alternatively you can try any of the below)

https://www.masswerk.at/jsuix/index.html or

https://www.webminal.org/terminal/ or

https://linuxcontainers.org/lxd/try-it/  

}}


2) File Commands Practise

Today we will learn few File commands. Commands Covered for Today are:

mkdir ; touch; ls ; cd

Lets Start:

Run the basic command "ls" to check what files or folders are already present; Run the below command

ls

The above should show if any default files already exist (this might show empty files too)


Next

mkdir: (Make or Create a Directory); Example: mkdir FolderName

Practise Example: Run the below commands

mkdir f1 

In the above, it will create a folder called "f1"

mkdir f2

In the above, it will create a folder called "f2"


Next 

To Verify created files, we will use the command "ls"(LiSt the Files); Run the below command to check if folders "f1" & "f2" were created successfully.

ls

The above command should show the files or folders. (it should show f1 f2 files)


Next

let's go inside the Created Folder "f1"; For this, we will use the "cd" command to go inside folder "f1"; Run Below command;

cd f1/

The above will take you inside folder "f1" ; 

Run the "ls" command again, it should not show any files as we have not created any further files inside folder "f1".


Next

Let's create an empty file inside "f1", we will be using a command called "touch"; Run Below

touch file1.txt

The above should create an empty file "file1.txt" 

(Run the "ls" command again to check the recently created file) 


Next 

Let's get out of the current folder; Run the below command

cd ..

The above will take you to the parent folder from the existing folder; 

(run the "ls" command again; it should show the files "f1" & "f2") 


-- "Session-01 DONE" --


In our next post, we will explore more about these commands.

H/W: (Similarly, try to go into "f2". Try creating further files and folders; verify them using "ls" and get out of it using "cd .." ).

Thank You.

To view or add a comment, sign in

Others also viewed

Explore content categories