The su command is used to run commands as a another user. It is simplest way to switch to the administrative account in the current login session. It is very useful when the root user is not allowed to log in to the system through ssh. For example, in Ubuntu, root user is disabled by
terminal - Page 11 of 13 - DesignLinux
Ps Command in Linux (List Processes)
A process is an executing instance of a program. Process is one of the important concept of the Linux OS. Linux provides ps utiliy to view information about running processes. In this article, we will show you how to use the ps command to list the currently running processes and their PIDs along with other
Find Large Files in Linux
In Linux, it is very necessary to find the unnecessary files and free up them from your hard disk. Usually, Linux systems run out of disk space due to large log or backup files. This tutorial explains how to find the large files and directories in Linux systems using the find and du command. Find
Type Command in Linux with Examples
The type command is used to show information about the command type and how its argument would be interpreted if typed on the command line. It is also used to find out whether it is built-in or external binary file. In this article, we will explain how to use the Linux type command. How to
Ls Command in Linux (List Files and Directories)
The ls is a Linux shell command, used to list information about files and directories within the file system. By default ls utility is installed on all Linux distributions. This tutorial explains how to use the ls command with examples. How to Use the ls Command# Following is the basic syntax for the ls command:
How to Check if a File or Directory Exists in Bash
While working with Bash and shell scripts, you might need to check whether a directory or a file exists or not on your filesystem. In order to check whether a file or a directory exists with Bash, you can use test command. Following is the basic syntax for the test command: test EXPRESSION [ EXPRESSION
Modprobe Command in Linux
The Linux kernel is the core component of the Linux operating system. It manages the system’s resources, and it is a bridge between your computer’s hardware and software. The Linux kernel has a modular design. A kernel module, or often referred to as a driver, is a piece of code that extend the kernel’s functionality.
How to Delete (Remove) Symbolic Links in Linux
A symbolic link is also known as symlink or soft link, is a special type of file that serves as a reference to another file or directory. A symlink can point to a file or a directory on the same or a different filesystem or partition. This guide explains how to remove symbolic links in
Unlink Command in Linux (Remove File)
The unlink is a command-line utility for removing a single file. It calls directly interfaces with the unlink system function, which removes a specified file. This tutorial shows you how to remove a file in Linux using unlink command. Removing File with unlink# Following is the syntax for the unlink command: unlink FILENAME Here, you
Bash Exit Command and Exit Codes
Often when writing Bash scripts, you will need to terminate the script when a certain condition is met or to take action based on the exit code of a command. In this article, we will cover the Bash exit built-in command and the exit statuses of the executed commands. Exit Status # Each shell command