rbash stands for the restricted bash shell. In UNIX like operating when a user is created a default shell (/bin/bash) is assigned. So a user can move to anybody’s directories, so to avoid this situation we can assign the restricted shell to a user, restricted shell is just like a jail-like environment or chroot environment. […]
Archives for September 2021
Backtick (`) symbol in Linux Shell Scripting
One of the most useful features of shell scripts is the lowly back quote character, usually called the backtick (`) in the Linux world. Be careful—this is not the normal single quotation mark character you are used to using for strings. Because it is not used very often outside of shell scripts, you may not […]
Linux rsync command with practical examples
Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specifications of the set of files to be copied. It […]
htop (interactive process viewer) Linux Performance Monitoring tool
htop is an interactive process viewer in a UNIX-like operating system. Htop is a free (GPL) ncurses-based process viewer for Linux. It is similar to the top but allows you to scroll vertically and horizontally, so you can see all the processes running on the system, along with their full command lines. Tasks related to […]
Set FTP Autologin with .netrc file in Linux
There are some scenarios where we do not want to specify ftp user name and password on the ftp command line. So to automatically supply ftp username and password to the ftp client, create a file .netrc in the user’s home directory which contains the information regarding the ftp server name, ftp user & password. […]
Java Hibernate Interview Questions and Answers
What is hibernate (Java)? Hibernate is an object-relational mapping (ORM) library for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database. Hibernate solves object-relational impedance mismatch problems by replacing direct persistence-related database accesses with high-level object handling functions. Why do you need an ORM tool like Hibernate? […]
Objective C Interview Questions and Answers
What is #import? It’s a C preprocessor construct to avoid multiple inclusions of the same file. #import <Object.h> is an alternative to: #include <Object.h> where the .h file is protected itself against multiple inclusions: #ifndef _OBJECT_H_ … #define _OBJECT_H_ #endif What is id? It’s a generic C type that Objective-C uses for an arbitrary object. […]
Puppet Interview Questions and Answers
What is Puppet? Puppet is a configuration tool that is used to automate administration tasks. Puppet Agent(Client) sends requests to Puppet Master (Server) and Puppet Master Push Configuration on Agent. What is Manifests? Manifests, in Puppet, are the files in which the client configuration is specified. What is Module and How it is different from […]
Load Balancer Interview Questions & Answers
What is Server Load Balancing? Server Load Balancing (SLB) provides network performance and content delivery by implementing a series of algorithms and priorities to respond to the specific requests made to the network. In simple terms, SLB distributes clients to a group of servers and ensures that clients are not sent to failed servers. What […]