0

enter image description here

I upgraded to the latest version of Kali Linux and all of a sudden I can't open up files. The file manager shows the files exist and I can get in them through the file manager but cannot do so through the CL.

5
  • 2
    @Chima, Please don't post images of text.
    – ilkkachu
    Feb 21 '19 at 14:10
  • Fair response @ikkachu. I've deleted my comments as they no longer have context as they were in response to a user that has since deleted their comments. A basic tutorial would have likely resolved the user's problem. I was basically protesting the closing of this question under the Kali Linux duplicate go-to.
    – Crypteya
    Feb 21 '19 at 23:28
  • @ilkkachu noted. Feb 22 '19 at 6:26
  • @Mark whatever you say Feb 22 '19 at 6:26
  • 1
    @Crypteya, yep, that part I can understand.
    – ilkkachu
    Feb 22 '19 at 8:33
3

First of all / is a directory, so if you use: cd /something it means that change to directory something which is inside / directory.

You are in /opt directory and you are having three directories there:

Teeth Veil Pycharm-community-2018.3.4

Now if you want to enter in any of these directories, you should use command:

cd directory_name

Or

cd /opt/directory_name

Not cd /directory_name because it will change to directory_name in /.

And same for the Downloads and Desktop directories. If you are in the homedirectory then try to use:

cd Desktop

or

cd /root/Desktop

Not cd /Desktop.

0
2

You're looking for:

cd Desktop

or

cd /root/Desktop

Not cd /Desktop as you have it.

Explanation

The issue that you're having is that you are trying to go to an absolute path rather than a relative path. You should research these terms and understand the significance of placing a / at the beginning of your path. Basically, absolute paths start from the root directory (what you were trying to use), and relative paths start from the working directory of your shell.

For more info, try reading here: https://www.geeksforgeeks.org/absolute-relative-pathnames-unix/

Not the answer you're looking for? Browse other questions tagged or ask your own question.