Question

In: Computer Science

Discuss what tasks can be performed in the ~/.profile file. (LINUX)

Discuss what tasks can be performed in the ~/.profile file. (LINUX)

Solutions

Expert Solution

(.profile) file is a startup file which is a hidden file. When the system is turned on, the OS executes line by line of this file so that default environment setting can be loaded. If the user wants to manually run the file, ~/.profile command is used to serve the purpose. It contains statements and various scripts whose functionalities defines to set up shell environment such as environment variables, various scripts and other instructions. These are executed in the file so that all the default settings of the environment are loaded when the shell program starts.

The main task/features include -

-- To control (or change)shells to open - Using the file, the default setting of which shell will open can be controlled.

-- Prompt appearance - The file can be used to change the shell prompt appearance either temporarily or permanently.

-- Keyboard sound - The sound produced when keyboard is used can be managed and altered by changing the script(or altering variables) inside the file.


Related Solutions

Linux Directories, File Properties, and the File System in C Understanding Unix/Linux Programming Your version of...
Linux Directories, File Properties, and the File System in C Understanding Unix/Linux Programming Your version of mv command The mv command is more than just a wrapper around the rename system call. Write a version of mv that accepts two argument. The first argument must be the name of a file, and the second argument may be the name of a file or the name of a directory. If the destination is the name of a directory, then mv moves...
What specific tasks can a RN delegate to the CNA? What Specific tasks can a RN...
What specific tasks can a RN delegate to the CNA? What Specific tasks can a RN delegate to the LPN?
To automate the sales system in Excel, what are processing tasks that could be automatically performed...
To automate the sales system in Excel, what are processing tasks that could be automatically performed when an invoice is accepted?
What have been the major changes in the file systems for Windows and for Linux?
What have been the major changes in the file systems for Windows and for Linux?
Systems Programming - File Operations in Linux using C Preventing copying the same file What does...
Systems Programming - File Operations in Linux using C Preventing copying the same file What does the standard cp do if you try to copy a file onto itself? $ cp file1 file1 cp: 'file1' and 'file1' are the same file Modify cp1.c to handle the situation and include comments. /** * @file cp1.c * @brief Uses read and write with tunable buffer size * usage: cp1 src dest */ #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <stdlib.h> #define BUFFERSIZE...
In the Linux file system, the majority of the file system code exists in the kernel....
In the Linux file system, the majority of the file system code exists in the kernel. research the anatomy of the Linux file system, then discuss the effectiveness or ineffectiveness of this type of architecture. In addition, explain why you feel the way you do and provide support
1. When a file is created on Linux Operating System, What are the default permissions of...
1. When a file is created on Linux Operating System, What are the default permissions of the file? 2. Write a command to find the total disk space used by a specific user on linux system? 3. What is "s" permission bit in a file? 4. Explain the difference between grep and egrep? 5. Write a command to list files where third letter is x or y? 6. Write command to remove array element with id 5? 7. Write a...
Please write shell scripts in Kali Linux to complete the following tasks. Task A - Take...
Please write shell scripts in Kali Linux to complete the following tasks. Task A - Take your UIN Write a script like below that reads and displays the MIDAS ID if the following requirements are satisfied: Only lower case letter [a-z] and numeric character[0-9] are allowed MIDAS ID must between 4 to 8 digits Test your script with the following examples: Your MIDAS ID in lower case Your MIDAS ID w.one upper case A string less than 4 digits A...
In LINUX Provide the command(s) and any additional steps to perform the following tasks. You will...
In LINUX Provide the command(s) and any additional steps to perform the following tasks. You will need to be running with root privileges. Create a symlink to the /etc/openldap/ directory named "ldapconf" in /tmp/. Find all .conf files in the /etc/ directory and its subfolders. Find all directories starting with "gnome" or "GNOME" anywhere under the /usr/share/ directory. Sam and Susan are members of the "sales" group. Sam has been working on a project that has grown too big for...
Linux Directories, File Properties, and the File System in C Code your version of mv command...
Linux Directories, File Properties, and the File System in C Code your version of mv command in C The mv command is more than just a wrapper around the rename system call. Write a version of mv that accepts two argument. The first argument must be the name of a file, and the second argument may be the name of a file or the name of a directory. If the destination is the name of a directory, then mv moves...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT