Results 1 to 3 of 3

Thread: How do I create a folder in Ubuntu @root ?

  1. #1
    Join Date
    Feb 2010
    Beans
    18

    How do I create a folder in Ubuntu @root ?

    I need move a pem file from Windows 10 to my WSL2 20.04 LTS with root@Desktop since I downloaded Jenkins also to root which is the only way it works, and I don't have time to find how to do it via a username@desktop.

    Can someone advise me how it can be done?

    And how do I create a folder at root@Desktop to move this pem file from Windows 10 C:\Users\folder\pemfile ?

    Hope someone can advise me.

    Tks.

  2. #2
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,904
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How do I create a folder in Ubuntu @root ?

    You might want to read this then:
    https://ubuntuforums.org/showthread.php?t=1486138

    You'd be better off to let go of your weird idea that you "need to do this as root" and learn the proper way of doing things.

  3. #3
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I create a folder in Ubuntu @root ?

    I have no experience of either Windows 10 or Windows Subsystem for Linux but if I understand things correctly when you installed WSL you created a user and a password. And as this Subsystem for Linux is command line you would need to use Linux commands and to work in the root directory you would need to prefix the commands with the word "sudo" and then enter your user password when requested.

    In command line Linux folders are called "directories."

    If the directory is off the user/home directory you may not need to prefix the command with "sudo."

    You need to change directory to where you want to create the directory. The command to change directory is "cd"

    Code:
    cd Desktop
    graham@sdb1-sdb8:~$ cd Desktop
    graham@sdb1-sdb8:~/Desktop$
    Code:
    mkdir pem
    To get back to the root directory

    Code:
     cd ..
    Now, you can move the file with the "mv" command

    https://linuxize.com/post/how-to-mov...th-mv-command/

    Regards
    Last edited by grahammechanical; July 19th, 2021 at 10:58 PM.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •