Search code examples
amazon-web-servicesshellterminalokta

Im setting up aws Okta and in one of the steps I see this ~/.aws/config:


What is happening here?

It looks like I have to change to a aws user? or that I have to create a hidden folder called .aws then add a file called config then below in the instructions are a bunch of variables to set.

I assume I put those variables inside that config file.

but its the ~ thats throwing me off.

what can someone translate this statement ~/.aws/config: to a statement in english please.


Solution

  • can someone translate this statement ~/.aws/config: to a statement in english please.

    "The Bash shell provides some variables that are prefixed with ‘~’ (named tilde) which is called Tilde Expansions.

    They are synonyms for contents of other variables within your shell."

    As explained in the comments, ~ refers to the home folder of the current user.

    >  ~ pwd
    /Users/kevin
    >  ~ echo $HOME
    /Users/kevin
    >  ~ echo ~
    /Users/kevin
    >  ~