Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

19
  • This .profile in /etc/ but I don't how to set the variables in this .profile please tell me Commented Feb 28, 2014 at 13:44
  • 7
    .profile is in your home directory not /etc/
    – Kiwy
    Commented Feb 28, 2014 at 13:45
  • 1
    [Admin@localhost etc]$ cat ~/.profile cat: /home/Admin/.profile: No such file or directory [Admin@localhost etc]$ Commented Feb 28, 2014 at 13:49
  • 6
    @user3021349 I don't meant to be rude but if you think one second you can also use a different editor you master. :wq is the command to write file and exit in vi don't forget to type esc before
    – Kiwy
    Commented Feb 28, 2014 at 13:59
  • 5
    You'll need to consider the environment variables in crontab scripts. None of these locations will be looked up when a crontab script is running.
    – yegle
    Commented Mar 1, 2014 at 1:04