![]() ![]() Use your Compose key then the Keys from the table below to get the Result character. Compose Key cheat sheet Compose Key cheat sheet ![]() Again, not that this extra "security" is really needed on WSL anyway.Īs with JoL's answer, this will allow: cp ~/myfile ~w/Documents/Īnd with the caveat that this could cause problems in some corner cases, you can use useradd's -badname option to force it to accept ~ as a username: sudo useradd -badname -home-dir /mnt/c/Users/ "~" # or. (There are exceptions and special cases but for the purpose of explaining the basics, let's keep it simple so far see below for the deeper explanation). Documents always means /home/chance/Documents. For example, the short-cut to copy the current selection is Control-C, and to paste the previously copied text the short-cut Control-V can be used. The leading (tilde) followed by slash in path is understood as reference to your user's home directory, i.e. That user would have the nologin shell, an expired password, and a locked account. The Tilde Text Editor About Tilde Tilde is a text editor for the console/terminal, which provides an intuitive interface for people accustomed to GUI environments such as Gnome, KDE and Windows. This would create a user w with the same user id and group id (1000:1000) as the primary WSL user (just a personal preference on my part to avoid polluting the system with unnecessary uids/gids). However, "best practice" would probably be something more like: sudo useradd -no-user-group -non-unique -u 1000 -g 1000 -shell /sbin/nologin -f0 -e0 -home-dir /mnt/c/Users/ w ![]() wsl -u root already gives you full access to everything in a WSL instance without a password).Ī simple. There's really no downside to creating a user for this purpose on WSL, since there's no concept of user-level security (i.e. It also appears to be possible to use ~ for the username, resulting in a ~~ shortcut. Open up Compose Key Position and choose a key. To set the compose key go to System -> Preferences -> Keyboard, then Layouts -> Options. Also, for a method of answer that works on most shells (at least Bash, Fish, Zsh, and even Dash), you can simply create a new user named w with a home directory pointing to your Windows' user profile. Note that you do not have to hold down the compose key just press each key in order. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |