“c “ and “b” permission fields are generally associated with a device file. It specifies whether a file is a character special file or a block special file.
In my bash shell I want my prompt to be of format ‘$”Present working directory”:”hostname”> and load a file containing a list of user defined functions as soon as I login , how will you automate this?
In bash shell we can create “.profile” file which automatically gets invoked as soon as I login and write the following syntax into it. export PS1=’$ `pwd`:`hostname`>’ .File1 Here File1 is the file containing the user defined functions and “.” invokes this file in current shell.
How can I set the default rwx permission to all users on every file which is created in the current shell?
We can use: umask 777 This will set default rwx permission for every file which is created to every user.