How can i append the following text in .profile in folder /etc/security of UNIX OS?PS1='hostname -s':$LOGNAME'[$PWD]'i tried:print 'export PS1='hostname -s':$LOGNAME'[$PWD]'  '  >> profilemy output gives:export PS1='hostname -s':$LOGNAME[/etc]with [/etc].
Update .profile in /etc in UNIX
shell;quoting;prompt
The command you posted makes little sense. If you read it somewhere, read more carefully. It's very likely that 'hostname -s' should in fact be `hostname -s`, i.e. with backticks rather than single quotes. When dealing with computers, punctuation often matters a lot. `hostname -s` can also be written $(hostname -s), and should be written this way (the syntax with backticks was the first to appear historically but is deprecated because it is less regular).Text inside single quotes is interpreted literally. Text inside backticks or $() is a command substitution: it is replaced by the output of the command.So that line should bePS1=$(hostname -s):$LOGNAME'[$PWD]'This sets your prompt to be the name of the machine, a colon, your user name, and the current working directory inside brackets.You should not edit a file under /etc this applies to all users, and if you need to ask here, then you should not edit this kind of settings for all users. You should set PS1 in your shell configuration file, which is probably the file .kshrc in your home directory (assuming that your shell is ksh  if your shell is bash, use .bashrc; if your shell is zsh, use .zshrc).