Skip to main content

Questions tagged [tilde]

-3 votes
1 answer
103 views

In the Bash manual, it is written about the tilde expansion: Each variable assignment is checked for unquoted tilde-prefixes immediately following a ‘:’ or the first ‘=’. Read the Bash manual about ...
Kiki Miki's user avatar
1 vote
2 answers
152 views

For example, I want to find all symlinks that reference to particular binary in all directories that belong to system $PATH. This can be successfully achieved with manual specification of all ...
Anton Samokat's user avatar
0 votes
1 answer
78 views

The accent keys, both normal and the inverted tilde, do not work for me in Google Chrome. I don't know how to solve it, among other things, I read that some program may be interfering, but I don't ...
ArtEze's user avatar
  • 137
1 vote
0 answers
147 views

I would like to copy a file from one location to another. When I use the cp command in a terminal it works well, for example I use the following command: cp -r projects/Test/ projects/Personal/ This ...
user601459's user avatar
0 votes
2 answers
103 views

In Ubuntu 22.04.3 LTS, if I log in with the credentials of the LDAP user testuser, in several different programs the path of the $HOME directory is not replaced by ~ (as instead it happens for local ...
BowPark's user avatar
  • 5,225
0 votes
1 answer
84 views

I do not understand the behaviour of this variable: SSH_CONFIG_FILE="~/.ssh/config" echo $SSH_CONFIG_FILE ls -l $SSH_CONFIG_FILE ls -l ~/.ssh/config This is the output: ~/.ssh/config ls: ...
Pietro's user avatar
  • 663
3 votes
2 answers
4k views

I came across something funny when testing my script. I can ls my directory from the shell manually if I run $ ls ~/db_backups/ test1 test2 $ However, if I assign a shell variable a dir location as ...
Classified's user avatar
1 vote
2 answers
585 views

After sudo command to change user, Tilde (~) not returning current user's home directory but returning previous login user's home directory. I needed to expand with echo ~USERNAME but I need to make ...
Jaswanthi Kolla's user avatar
5 votes
1 answer
1k views

Please, consider the following snippet: $ export xx=foo $ sudo bash -c 'echo $xx ~' /root Which is ok. We can't see xx. However, if I expose it: $ sudo -E bash -c 'echo $xx ~' foo /home/xropi Though ...
xropi's user avatar
  • 93
0 votes
1 answer
83 views

I have the following expression that is giving an error, but I am unable to figure out the problem. rcutils_path="~/Admir/bin/gungadin-1.0/rcutils" # Re-map modifier keys for dvorak ...
Pietru's user avatar
  • 403
6 votes
1 answer
7k views

I'm using zsh on ubuntu and I created a symlink for bat as so: ln -s /usr/bin/batcat /home/user_name/.local/bin/bat hitting ls -l from ~/.local/bin shows: lrwxrwxrwx 1 tux tux 15 May 19 13:47 ...
Haris Muzaffar's user avatar
0 votes
2 answers
3k views

I've changed my home directory from /home/alessandro to /mnt/c/Users/aless/Documents/uni/labcalc (I am using debian in WSL so /mnt/c is C:\ in windows). When I type cd ~ it correctly goes to my new ...
Alessandro Costantini's user avatar
2 votes
0 answers
170 views

I am under fedora 29. I edit my files with gvim and since a few days, one of them appears multiple times, renamed with an additional letter and tilde. The directory looks like this : sf1.pdf sf1....
Marc's user avatar
  • 21
0 votes
4 answers
2k views

What is the absolute path of cd ~ on Ubuntu? Trying to find out where this dir is located? For example: /home
K_G's user avatar
  • 127
4 votes
2 answers
6k views

I am using an Acer Swift One laptop with Windows 10. The keyboard is a standard German keyboard. I downloaded bash today from git-scm.com/download/win and tried some commands. For some reason bash ...
Linda's user avatar
  • 49

15 30 50 per page