The modprobe command is used to add or remove modules from a kernel. This command is capable of loading all the dependent modules before inserting the specified module. It is therefore preferred over using the insmod and rmmod commands. To add modules using modprobe, use the -a option and specify the modules you want to […]
Archives for October 2022
uname: command not found
By default, uname prints the name of the kernel—Linux. You can view the kernel version number of your current system by using the uname -r command. You can also enter uname -i to view the hardware platform. To print all information, enter theuname -acommand. Without any flags, the uname command will display the operating system […]
tee Command Examples in Linux
The tee command reads the standard input, sends the output to the default output device (the CLI), and also copies the output to each specified file. This command enables you to verify the output of a command immediately as well as store that output in a file for later reference. Like xargs, tee typically accepts […]
tee: command not found
The tee command reads the standard input, sends the output to the default output device (the CLI), and also copies the output to each specified file. This command enables you to verify the output of a command immediately as well as store that output in a file for later reference. Like xargs, tee typically accepts […]
xargs Command Examples in Linux
The xargs command reads from standard input and executes a command for each argument provided. Each argument must be separated by blanks. The pipe operator is used to make the output of the first command the input for the second command. The xargs command is commonly used with the find command to operate on each […]
xargs: command not found
The xargs command reads from standard input and executes a command for each argument provided. Each argument must be separated by blanks. The pipe operator is used to make the output of the first command the input for the second command. The xargs command is commonly used with the find command to operate on each […]
ln: command not found
The ln command is used to create a link to a file. Linking enables a file name in one directory (the link) to point to a file in another directory (the target). A link does not contain data of its own, only a reference to the target file. Any changes to the link will reflect […]
awk Command Examples in Linux
The awk command performs pattern matching on files. It is based on the AWK programming language. The awk keyword is followed by the pattern, the action to be performed, and the file name. The action to be performed is given within curly braces. The pattern and the action to be performed should be specified within […]
sed Command Examples in Linux
The sed or stream editor command is a program that you can use to modify text files according to various parameters. The sed command can also be used for global search and replace actions. Some of the common command options and their uses are given in the following table. Option Description -d Delete the lines […]
sed: command not found
The sed or stream editor command is a program that you can use to modify text files according to various parameters. The sed command can also be used for global search and replace actions. Some of the common command options and their uses are given in the following table. Option Description -d Delete the lines […]