In: Computer Science
What is a working set?
What is the first line of every bash script?
What is the permission string (RWXRWXRWX format) of the number 311
What is the base directory of a file system called on windows,
and on linux
What does the term 'super user' mean in terms of operating
systems
Following is the answer:
What is a working set?
A working set is a logical collection of projects, which you can
use to limit the number of resources that are displayed in the
Application Development view. By creating and using a working set,
you can reduce the visual complexity of what is displayed in the
Application Development view, making it easier to manage and work
with your projects.
What is the first line of every bash
script?
The first line of the script is important. This is a special clue,
called a shebang, given to the shell indicating what program is
used to interpret the script. In this case, it is /bin/bash. Other
scripting languages such as Perl, awk, tcl, Tk, and python also use
this mechanism.
bash and sh are two different shells. Basically bash is sh, with
more features and better syntax. Most commands work the same, but
they are different.
example:
#!/bin/sh — Execute the file using sh, the Bourne shell, or a
compatible shell
#!/bin/csh — Execute the file using csh, the C shell, or a
compatible shell
#!/usr/bin/perl -T — Execute using Perl with the option for taint
checks
#!/usr/bin/php — Execute the file using the PHP command line
interpreter
#!/usr/bin/python -O — Execute using Python with optimizations to
code
#!/usr/bin/ruby — Execute using Ruby
What is the permission string (RWXRWXRWX format) of the
number 311
311 -> _WX__X__X
What is the base directory of a file system called on
windows, and on linux
/User is the base directory of a file system called on windows
and
/(root) is the base directory of a file system called on linux
What does the term 'super user' mean in terms of
operating systems
A superuser is a special user account for general system
administration such as in networks and databases. It is a variation
of the administrator user, which varies depending on the operating
system and context.
On a Unix system, the superuser refers to a privileged account with
unrestricted access to all files and commands. The username of this
account is root. Many administrative tasks and their associated
commands require superuser status.
There are two ways to become the superuser. The first is to log in as root directly. The second way is to execute the command su while logged in to another user account. The su command may be used to change one's current account to that of a different user after entering the proper password. It takes the username corresponding to the desired account as its argument; root is the default when no argument is provided.