Linux general interview questions with answers, Part 1

Linux

Linux Commands

Web Servers Nginx

Nginx

Interview Questions Linux General

Linux General

Facebook

Correct answers are provided with full care for all the interview questions.

It is an operating system which is designed for both efficient multi-tasking and multi-user function.

Unix is primarily a command-line operating system with additional applications to give it a graphic oriented operating system similar to Microsoft Windows.

UMASK controls the default permission given to a new file or a directory when they are created on a Linux machine. The default umask values for the Bash shell users are defined in the following /etc/profile and /etc/bashrc files. Users can override the system defaults in their “. bash_profile” and “. bashrc files”.

To change the default run level, we have to edit the file “/etc/inittab” or In the case of systemd it uses ‘targets’ instead of run levels. For example systemctl set-default TARGET.target

gpasswd command with -r option removes the password from the group

cat vim vi nano head tail more less

The file used to configure kickstart is anaconda.cfg

swapon command is used in Linux to activate an already created swap partition for paging and swapping

The first value shows current, second value 5 minute back and third value 15 minute back average load

A super user account called ‘root’ is created with Linux installation.

/var/log/secure

Telnet isn’t used because of lack of security.It sends data across the network in plain text format which can be read easily to find out the password. It has been replaced almost everywhere by OpenSSH

uname -m command is used to find out bit size of the Linux system

A file in the file system is basically a link to an inode. When we create a hard link a new file is created with a link to the same underlying inode while Softlink is a shortcut link to the original file. Hard link files have same inode numbers while soft link size is equal to null. Changes done in any file which is hard link will reflect changes across all the files while in soft link if the original file is deleted then it’s shortcut will not work. In the case of hard link If one file is deleted, it won’t affect the other file while in soft link if you delete shortcut it won’t affect the original file.

We can create a new user account in Linux by using useradd command.

In Linux, the filenames which are preceded by a dot are called hidden files.

That’s all for now. How these interview questions helped you, post them in the comments.

I am an RHCE System Administrator with 3+ years of experience. I like to read, write and share information about technologies.

Sign me up for the newsletter!

Free command with examples to viewing memory usage in Linux September 7, 2017

How To Install Google Chrome 61 on RHEL/CentOS 7 and Fedora 26-20? September 6, 2017

How to change run level in Linux with systemd or init? September 4, 2017

How to check if port is open or in use on Linux or Unix? August 26, 2017

How to set up firewall with firewalld on RHEL/CENTOS 7? August 7, 2017

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

We respect your privacy and take it seriously.

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License . No part of this site, Linuxtpoint.com, may be reproduced without the permission of the copyright owner.

About

Privacy Policy

Copyright Policy

Contact Us