Accessing Windows Files and Creating Files Using Command Line

Accessing Windows Files and Creating Files Using Command Line

August 14, 2022 by Abdul Rehman0
Purple Online Learning Course Facebook Ad (7)
CLI
Screenshot 2022-08-14 173920
Screenshot 2022-08-14 181645
Screenshot 2022-08-14 181729
Step-by-Step Guide on Accessing Windows Files and Creating Files in the terminal and Accessing files in the terminal for editing

Accessing the Desktop of Windows OS

opened ubuntu and wrote the command (present working directory)

PWD

check the list of files in the directory by using the command

ls -al

Then, use the dir command to print all the available directories in the present working directory.

dir

check the partition of the hard drive by using the command

ls /mnt/

access the c-drive by using the command cd

cd /mnt/c

access the current user by using the cd command

cd users

Access the folder on current User in my case user name is 92318

cd 92318

access the desktop using the command cd.

cd desktop

Making a directory in windows OS

Make a directory on the desktop using the mkdir command

mkdir new

Before Accessing we are going to see if the directory is created or not

ls -a

Now we are going to access the directory using the cd command

cd new

Creating And Accessing Files in the CLI

created the text document file by using the touch

abc.txt command

For editing the text file in bash use the nano

abc.txt command

Accessing the written file on the desktop wrote the

cat abc.txt


 


Leave a Reply

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




WE CAN, WE Will




+92-309-017-1710


24/7 Services

Call us now if you are in a need, we will reply swiftly and provide you with our services.


Copyright 2022 Bioinformatics.pk