Score:0

How can interpret ~ symbol in this command line?

cn flag

While I am installing Jenkins and Ansible, I see this command from tutorial.

sudo cp ~/.kube/config ~jenkins/.kube/
sudo chown -R jenkins: ~jenkins/.kube/

sudo cp ~/.kube/config ~jenkins/.kube/

sudo chown -R jenkins: ~jenkins/.kube/

~/.kube/config means the home diectory/.kube/config file.

But as for ~jenkins, I don't know what does it mean.

Can you kindly let me know?

Denis Turgenev avatar
cn flag
Thank you , great !!!
Denis Turgenev avatar
cn flag
@N0rbert, sudo chown -R `jenkins:` ~jenkins/.kube/ execute this, then what group do those files have finally?
Score:4
cn flag
raj

~ means home directory of the current user (the one calling the command).

~username means home directory of the user username.

Denis Turgenev avatar
cn flag
Thx, i can't upvote for little reputation
Denis Turgenev avatar
cn flag
now can upvote you
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.