Beginning Samsung ARTIK by Cliff Wootton

Beginning Samsung ARTIK by Cliff Wootton

Author:Cliff Wootton
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


∼/.bash_logout

bash

Shell commands to execute when you log out of a bash session. What you do here could indicate the difference between an orderly logout and a system crash that shuts everything down without warning.

Choose the scope (global or private) and then open the appropriate initialization file in your editor. Add this line to create an environment variable assignment that defines what your command-line prompt is going to be:

export PS1=" "

Start with an empty text string and construct a new prompt piece by piece. Aside from any arbitrary string of literal characters, add the following meta-characters to define your own custom command-line prompt. Type your custom string between the quotation marks that define the PS1 value. Be careful not to construct a new prompt that is too long or you will be coping with lines wrapping when you type long command-line strings. Use the meta-characters listed in Table 11-4 to construct a custom prompt according to your needs.Table 11-4. Shell Command Prompt-Formatting Meta-characters



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.