Hello I am new here I am on Linux basis “Core Concepts”. I was asked to type mkdir labword to create the “labwork directory” as you can see to the right i’m told cannot create directory “labwork”: file exists
what does this means and what do I do. Please I wish to get an urget answer please
It means that you have already typed that command.
Perhaps you exited the lab and then started a new lab session right away, thinking it would be a clean Linux. However, you will get the same desktop you had unless you wait 5 minutes of so between starting a new session.
If you want to start over without having to wait, use the Restart Lab button on the Machines tab.
1 Like

I had restarted the VM and did the coding again this what i got. is this how it should be?
1 Like
Yes. If you issue an ls command you will see the new directory. If you try to issue the command again it will fail, because the directory already exists.
I used the command for the labwork but i’m worried if I’m on path because the labwork is not appearing in the practice area as it is in the practice guide. Am I on path?
Not quite! Your working directory (the part after “cybrary@linux”) is still in the home folder (aka: “~”)
So any commands will apply to the home folder unless specified otherwise.
For example:
touch file1.txt
Will make a file called file1.txt
in the current working directory, in this case, “home”
touch ~/labwork/file1.txt
Will make a file called file1.txt
in the directory ~/labwork
You can change your working directory with the cd
command (think CD for “Change Directory”).
Which looks like this:
cd ~/labwork
If your working directory is already “~” then you don’t have to write the full path, just the name of the folder you want to change to. In this case:
cd labwork
After you have changed your working directory, your terminal will display it after the “cybrary@linux” part just like in the screenshot in the instructions. Another way to check your working directory is the command pwd
(Print Working Directory) which will Print the Working Directory to your terminal.
Hope this helps :3
1 Like
![the use of the cd command is my problem2|690x227]
(upload://5O13BDN7SdLxJnjYGOuoD84bfGa.png)
I notice my confusion has to do with the use of the cd command to navigate the labwork directory. I will like you to take me through exercise 1-3 in the PART2: FILE OPERATIONS practice guide.
kindly help me with this also how to use the echo command and two others together.
You are shown how to use the echo command in Part 2 Step 4.
1 Like
echo
simply “echoes” its arguments. so for example:
echo “hello world”
Will output “hello world” in the terminal. You can use this output to write to files or pipe to other commands and a bunch of other things. In this case its asking you to “append” a file which is done with >>
for example, with $ denoting input:
$ echo “hello world” > file1.txt
$ cat file1.txt
hello world
$ echo “sunshine and rainbows” >> file1.txt
$ cat file1.txt
hello world
sunshine and rainbows
Hope this helps!
1 Like