answersLogoWhite

0

📱

Unix

Unix is a family of operating systems primarily designed for servers, mainframes, and high-end workstations. First created in 1969, Unix systems are renowned for their security and stability.

1,127 Questions

Are system calls part of kernel?

Yes, they are the interface to kernel functionality. To quote wikipedia: a system call is how a program requests a service from an operating system's kernel that it does not normally have permission to run

What file extensions are used to identify command shell scripts?

For windows, you might use .cmd, .bat as common file extensions.

Unix doesn't use file extensions as associations, so no file extension needs to be used in the Unix environment. A shell script in Unix is simply a text file with any name that is readable and executable.

However, file extensions are typically used in Unix as a documentation aid that states that the file is a shell script. Common extensions are .sh, .csh, .ksh, .tcsh, .zsh, etc.

What is the difference between absolute path name and relative path name in Unix?

Absolute path: Path from root directory (it is the same place, wherever the current path is)

Relative path: Relative to the current path.

What Refers to directing the output of one command to the input of a second command?

The 'pipe' symbol connects the output of one command to the input of another (|)

What is the special editing command to edit the user account information file?

This command should be used very carefully, and may only be used by the administrative/root account:

vipw

Is ls is external or internal command?

The 'ls' command is an external command (found in /bin)

What is smitty in aix?

'smit/smitty' is the administrator tool for configuration in AIX.

How do you display the values in shell script?

Use the builtin 'echo' or 'print' command followed by the shell variable name, which will substitute the value when printed/displayed.

How do you write a c program for diff command that we use in unix?

Too difficult to answer here. I would find the source code and use that (if you really had to). Might require a 'port' to another operating system if it wasn't Unix based.

Who are the principal architects of the UNIX operating system?

The principals were Richie and Thompson, along later with Kernighan (for C).

What file systems are supported by FreeBSD?

UFS is the main filesystem for FreeBSD, but ZFS is also a popular choice. ext2, msdos, ntfs (read-only), and smb are also supported.

What are the key difference bitween freely distributable unix and propretary implementtation?

Freely distributable Unix/Linux systems come with the source code, which can be modified.

Proprietary Unix systems are distributed as binary only, with no source code, so you can't modify the system (easily).

Other reasons are legal: the proprietary systems are copyrighted, and the freely distributable versions should not have any copywritten code in them, thus allowing them to be distributed without licensing arrangements.

Where is the running configuration file stored?

You don't mention what you are looking for in terms of a "running configuration file". In Unix/Linux there are many of these. Most of them can be found in the /etc directory or its subdirectories but not all of them are located in /etc.

What type of information is kept by Unix-like systems about each file on your computer?

The filesystem will keep metadata like filename, file permissions, file type (as far as whether it's a regular file, a directory, a named pipe, device file, and so on), file creation and modified date. In addition, if the filesystem being used utilizes inodes, it will also have information on the inode that file is on.

How do you read a pdf file name using a shell script?

Your question is unclear; Are you talking about reading a filename that happens to contain PDF, or reading a PDF file itself?

The shell script doesn't know or care what kind of files you are using. It all depends on what you intend to do with the file.

Parse log files-shell script?

There are following shell scripts available at the below mentioned url -

1. Shell Script for Log4j Log Analysis and exception reporting2. Log Monitoring Shell Script - email upon errors

Hope that's what you are looking for.

Which task can you perform with the dd command?

There are lots of tasks you can perform with the dd command. The most common would be to create an image file from a disk or partition. Another use would be to create an empty file of an arbitrary size.