The nice command enables you to run a command with a different nice value than the default. The -n option increments the nice value by the given integer; if you don’t provide an integer, then the command will assume an increment of 10. By running nice without any options, you’ll see the default nice value. […]
Archives for October 2022
systemd-analyze Command Examples in Linux
The systemd-analyze command is used to retrieve performance statistics for boot operations. The command takes one or more subcommands that determine what type of information to print, and how. For process management and troubleshooting, blame is the most relevant subcommand. This will print a list of all systemd units that were executed at boot, along […]
systemd-analyze: command not found
The systemd-analyze command is used to retrieve performance statistics for boot operations. The command takes one or more subcommands that determine what type of information to print, and how. For process management and troubleshooting, blame is the most relevant subcommand. This will print a list of all systemd units that were executed at boot, along […]
top: command not found
Like ps, the top command lists all processes running on a Linux system. It acts as a process management tool by enabling you to prioritize, sort, or terminate processes interactively. It displays a dynamic process status, reflecting real-time changes. Syntax The syntax of the top command is: # top [options] Different keystrokes within this tool […]
ps: command not found
The ps command invokes the process table, a record that summarizes the currently running processes on a system. When the command is run without any option, it displays the processes run by the current shell with details such as the PID, the terminal associated with the process, the accumulated CPU time, and the command that […]
pgrep Command Examples in Linux
The Process Grep, commonly known as pgrep, is another popular method used for finding process IDs at the shell. If we know the process name, then we can specify it with the pgrep command. The pgrep command displays the PID of processes that match any given pattern, similar to how grep is used to match […]
pgrep: command not found
The Process Grep, commonly known as pgrep, is another popular method used for finding process IDs at the shell. If we know the process name, then we can specify it with the pgrep command. The pgrep command displays the PID of processes that match any given pattern, similar to how grep is used to match […]
service: command not found
The service command is another way to control SysVinit services through SysVinit scripts. It supports the following subcommands. Subcommand Used To {service} status Print current state of service. {service} start Activate service immediately. {service} stop Deactivate service immediately. {service} restart Restart service immediately. {service} reload Re-read config files while service runs. Syntax The syntax of […]
chkconfig: command not found
The chkconfig command can be used to control services at each runlevel. It can also be used to start or stop services during system startup. Syntax The syntax of the chkconfig command is: # chkconfig [options] [service] [subcommand] The following are some subcommands and options that can be used with chkconfig to control services. Option […]
telinit: command not found
The telinit command enables you to switch the current runlevel of the system. On systemd environments, the telinit command will be translated into the appropriate target request. The runlevel command prints the previous and current runlevel of the system, each separated by a space. Syntax The syntax of the telinit command is: # telinit [options] […]