Score:0

Certain commands dont work . How do I fix it?

in flag

I've successfully managed to install Ubuntu server 18.04. Most of my sudo commands work fine, however, I am having issues running the cd/cp commands. ie: whenever I type cd/ I get:

-bash: cd/: No such file or directory.

The same thing happens when I type cat auth.log and when I use q to quit. The program suggested installing python, which I did; but still no results. Please advise, thank you.

us flag
Most likely you are missing a space. Try `cd /`. Are you sure `auth.log` exists where you are expecting it?
Jacob Vlijm avatar
by flag
1. space is missing: `cd /` 2. `auth.log` obviously is not in your working directory (if it exists at all). 3. where are you using q on?
hu flag
Check out the howto: https://linuxcommand.org/lc3_lts0020.php
Score:2
in flag

Let's divide this to subquestions:

whenever I type 'cd/' I get '-bash: cd/: No such file or directory'.

When we whats the usage of the command cd (cd --help) we will found as follows:

cd: cd [-L|[-P [-e]] [-@]] [dir]

Change the shell working directory.

What you are mistaking is that you are missing a space after using command cd and the system is recognizing this as command cd/ not a command cd /. This will cause the error you are mentioning.


We can do the same for using cat, be first sure to use cat --help to find out how this commands has to be used, or google it.

Be sure you are using an existing file otherwise, the cat will output

cat: auth.log: No such file or directory

Which you may misunderstand as cat is not existing.

cd, as well as cat, are default Ubuntu commands which are always present, until you uninstall them, which I am not sure if it's possible.


I believe the same applies for 'q' which is just closing output on the terminal if needed.


I would recommend looking at the basic Ubuntu usage docs they are providing link for the beginning!

Antonia  avatar
in flag
Thank you as well, I got it to work :)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.