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

What are the four categories of the tasks performed by the financial management department? In what...
What are the four categories of the tasks performed by the financial management department? In what ways does the financial management department contribute to the strategic planning process? Please provide an example to support your answer.
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?
What are the main planning tasks performed as part of project schedule management? What are some...
What are the main planning tasks performed as part of project schedule management? What are some of the most common outputs created, and how are they used?
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...
What are the steps required to be performed by the Ext2 file system subsystem to delete...
What are the steps required to be performed by the Ext2 file system subsystem to delete a file of size 72KiB? Assume you know and have in memory a copy of the inode of the directory the file is in and the inode of the file to be deleted. Also assume the block size is 1024 bytes. Either list the steps required or use a flowchart.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT