June 8, 2019

Srikaanth

eClerx Linux Interview Questions Answers

eClerx Most Frequently Asked Latest Linux Interview Questions Answers

You Issue The Command Head * What Would The Resulting Output Be?

If the number of lines to display is not specified, the first ten lines of the specified file are displayed. The asterick tells head to display the content of each file in the present working directory.

What Text Filter Can You Use To Display A Binary File In Octal Numbers?

The od text filter will dumpt the contents of a file and display it in 2-byte octal numbers.

What Would Be The Result Of The Command Paste -s Dog Cat?

The paste text filter usually joins two files separating the corresponding lines with a tab. The -s option, however, will cause paste to display the first file, dog, then a new line character, and then the file cat.

You Wish To Print The File Vacations With 60 Lines To A Page. Which Of The Following Commands Will Accomplish This?

The default page length when using pr is 66 lines. The -l option is used to specify a different length.

What Would Be The Result Of Issuing The Command Cat Phonenos?

The tac text filter is a reverse cat. It displays a file starting with the last line and ending with the first line.

You Need To See The Last Fifteen Lines Of The Files Dog, Cat And Horse. What Command Should You Use?

The tail utility displays the end of a file. The -15 tells tail to display the last fifteen lines of each specified file.

Which Field Is Used To Define The User's Default Shell?

command-The last field, called either command or login command, is used to specify what shell the user will use when he logs in.

When You Create A New Partition, You Need To Designate Its Size By Defining The Starting And Ending?

cylinders-When creating a new partition you must first specify its starting cylinder. You can then either specify its size or the ending cylinder.

What Can You Type At A Command Line To Determine Which Shell You Are Using?

echo $SHELL-The name and path to the shell you are using is saved to the SHELL environment variable. You can then use the echo command to print out the value of any variable by preceding the variable’s name with $. Therefore, typing echo $SHELL will display the name of your shell.

In Order To Display The Last Five Commands You Have Entered Using The Fc Command, You Would Type?

fc -5-The fc command can be used to edit or rerun commands you have previously entered. To specify the number of commands to list, use -n.
eClerx Most Frequently Asked Latest Linux Interview Questions Answers
eClerx Most Frequently Asked Latest Linux Interview Questions Answers

What Command Should You Use To Check Your File System?

fsck-The fsck command is used to check the integrity of the file system on your disk.

What File Defines The Levels Of Messages Written To System Log Files?

kernel.h-To determine the various levels of messages that are defined on your system, examine the kernel.h file.

What Account Is Created When You Install Linux?

root-Whenever you install Linux, only one user account is created. This is the super user account also known as root.

What Daemon Is Responsible For Tracking Events On Your System?

Syslogd-The syslogd daemon is responsible for tracking system information and saving it to specified log flies.

Where Standard Output Is Usually Directed?

To the screen or display-By default, your shell directs standard output to your screen or display.

What Utility Can You Use To Show A Dynamic Listing Of Running Processes?

Top-The top utility shows a listing of all running processes that is dynamically updated.

Who Owns The Data Dictionary?

The SYS user owns the data dictionary. The SYS and SYSTEM users are created when the database is created.

What Command Can You Use To Review Boot Messages?

dmesg
The dmesg command displays the system messages contained in the kernel ring buffer.
By using this command immediately after booting your computer, you will see the boot messages.

Nscd Sometimes Die Itself And Dns Resolving Doesn't Happen Properly. How Can We Avoid Nscd For Dns And There Is A Disadvantage To Bypass It?

nscd is a daemon that provides a cache for the most common name service requests. When resolving a user, group, host, service..., the process will first try to connect to the nscd socket (something like /var/run/nscd/socket).

If nscd has died, the connect will fail, and so nscd won't be used and that should not be a problem.

If it's in a hung state, then the connect may hang or succeed. If it succeeds the client will send its request (give IP address for www.google.com, passwd entries...). Now, you can configure nscd to disable caching for any type of database (for instance by having enable-cache hosts no in /etc/nscd.conf for the hosts database).

However, if nscd is in a hung state, it may not be able to even give that simple won't do , so that won't necessarily help. nscd is a caching daemon, it's meant to improve performance. Disabling it would potentially make those lookups slower. However, that's only true for some kind of databases. For instance, if user/service/group databases are only in small files (/etc/passwd, /etc/group, /etc/services), then using nscd for those will probably bring little benefit if any. nscd will be useful for the hosts database.

Subscribe to get more Posts :