[–] 1 point 4 months ago

It's more work but you could still do HyperV and Linux but not the full Ubuntu Desktop. You could download a 1GB ram distro like Lubuntu onto a USB stick and install it under HyperV. And equivalent to wsl which gives you a Linux command line would be Ubuntu server headless which needs only 512MB.

But yeah wsl is easier.

  • source
  • parent
  • context
  • [–] 5 points 4 months ago (2 children)

    Lol.

    As someone who uses both extensively, and dependent on OneNote, even I wholly agree.

    OP would be better off running Linux and replacing Windows dependencies with Linux equivalents.

    Uggh, Windows on 4GB - even XP would struggle with that.

  • source
  • parent
  • context
  • [–] 5 points 4 months ago (8 children)

    Someone else mentioned VM but didn't give details.

    Click Start, type in HyperV, install the HyperV component. In HyperV, click Quick Create. Select Ubuntu, install. You'll have a full Linux running in a window as if you built a second PC.

  • source
  • [–] 7 points 4 months ago

    It's probably displaying help output because something went wrong parsing the command. Scroll up to see what it says the problem is. Perhaps you forgot a dash or misspelled "install"?

  • source
  • [–] 4 points 4 months ago (1 child)

    Is this homework of some sort?

    By default, GNU ls will quote entries containing certain special or unprintable characters. For example, if a file name contains the space character, GNU ls will print e.g. 'hello world'. This quoting is done using Bash syntax.

    In Bash, 'folder'$'\003' (or $'folder\003') represents the text folder followed by octal byte 3. Because you use Fish instead of Bash, this doesn't workΒ­β€”it has a different syntax to specify unprintable/special characters.

    I can tell you how to refer to this file in Fish, but I hesitate to do it if it's for homework. What I will do is point you to the part of the Fish documentation where this is (kind of) explained: in Fish for bash users#Quoting.

  • source
  • [–] 4 points 4 months ago

    β€˜folder’$β€˜\003’

    Oh that is unpleasantly fiddly to insert all the backslashes to escape the bits. Testing here, (fiddly to even make a dir called that, lol), for fun, instead of just pressing tab, ... is it just the $ and the \ you need to escape? and the ' are fine? Results here are inconclusive, not sure I managed to make a file with the same name, it showing here with extra outer '.

    Probably easier to just interactively.... but yeah, in case needing to have it written for a script... probably easiest still to just press tab, to see how it arranges the escape syntax, and paste that into your script. ;)

    The fi in fish is friendly interactive, after all.

  • source
  • parent
  • context
  • [–] 5 points 4 months ago*

    Yep as others have noted put a \ in front of each special character. The \ tells the system to treat the following character as a alphanumeric character in the string and not as a operator or a command. Since ', $ and \ are all special characters you will need a \ just before each when typing this name. Also as mentioned do this with a benign command like ls first to make sure your only acting on that specific directory or you might have a bad day.

    Edit: How the heck did you get some of those folder names? Looks like a script with incorrect variable/macro substitution made these.

  • source
  • parent
  • context
  • [–] 8 points 4 months ago

    What does ls show?

    you can escape special charcters with \ something like \'folder\'\$\'\\003\' might work

    be careful with rm -rf as you might delete your entire disk if done badly. use some other command to test if it targets the correct directory like ls \'folder\'\$\'\\003\'

  • source
  • parent
  • context
  • view more: β€Ή prev next β€Ί