creating new file in ubuntu wsl

Upset Unicorn answered on March 25, 2023 Popularity 6/10 Helpfulness 6/10

Contents


More Related Answers

  • wsl file location
  • wsl file to unix format
  • how to run explorer in wsl
  • how to open explorer in wsl linux directory
  • wsl file
  • Install Ubuntu WSL without Windows Store
  • How to Access Your Linux (WSL) Files in Windows 10
  • WSL2 config file
  • install ubuntu wsl without windows store
  • wslconfig example
  • install fzf wsl
  • install WSL with Ubuntu
  • how to create a new file in ubuntu
  • navigate to C drive in bash on WSL-Ubuntu
  • copy files from windows to wsl2 ubuntu
  • how to install zip files using wsl
  • start wsl with command
  • start wsl with command
  • how to locate file on wsl
  • mv some files from windows download folder to wsl2 in ubuntu
  • install wsl ubuntu

  • creating new file in ubuntu wsl

    1

    1st method is using touch command

    2nd method by cat and redirection command

    3rd method with echo command

    - in touch command we create an empty file - in cat method the prompt will ask for the data which needs to be added into it you can exit the prompt by pressing CTRL + C - in the same way in echo command we need to provide the context for the file while creating it

    Popularity 6/10 Helpfulness 6/10 Language shell
    Tags: file shell ubuntu
    Link to this answer
    Share Copy Link
    Contributed on Mar 25 2023
    Upset Unicorn
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.