Accessing Windows Files and Creating Files Using Command Line





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