Tag Archives: linux command

What does /bin/sh -c do in Linux

To solve the problem of command permission, you can expand the scope of permission. Next, we will introduce it to you with an example. For example, there is a root file (admin.log) in the current directory, and we want to … Continue reading

Posted in Internet Technology | Tagged , , | Comments Off on What does /bin/sh -c do in Linux

How to find all files containing specific text on Linux?

In linux, to find all files containing a specific text, we can use the grep command, which can search for the specified text in the file. In the following example, we will introduce two methods to find all files containing … Continue reading

Posted in Internet Technology | Tagged , , | Comments Off on How to find all files containing specific text on Linux?

6 methods of executing historical commands in linux bash

!! – repeat the previous command; !t – repeat the previous command headed by t; !Number – repeat the previous command with number … Continue reading

Posted in Text Processing | Tagged , | Comments Off on 6 methods of executing historical commands in linux bash

How to display full path/absolute path with ls command

linux ls full path, you can use the ls -d option combined with the environment variable $PWD. syntax: ls -d $PWD/* Continue reading

Posted in Internet Technology | Tagged , , | 1 Comment

man command tutorial in linux/unix with examples

Man command in Linux/unix is used to display the user manual of any command we can run on the terminal. Continue reading

Posted in System | Tagged , , | Comments Off on man command tutorial in linux/unix with examples

help command tutorial in linux/unix with examples

Help command can help you understand any built-in commands in linux/unix. Syntax: help name, name: built-in function name. Continue reading

Posted in System | Tagged , | Comments Off on help command tutorial in linux/unix with examples

5 ways to get command help in linux/unix

How to get command help while working on Shell ? 1.command -h or –help 2.man command 3.help command 4.info command 5.whatis command Continue reading

Posted in System | Tagged , , | Comments Off on 5 ways to get command help in linux/unix

lsof command tutorial in linux/unix with examples and use cases

The lsof command can not only view the files and directories opened by the process, but also view the socket-related information such as the port the process is listening on. Continue reading

Posted in System | Tagged , , | Comments Off on lsof command tutorial in linux/unix with examples and use cases

I/O redirect in linux/unix with examples

I/O redirection is a process that captures the output of a command, application, or script, and then sends the captured output as input to a file, command, or script. Continue reading

Posted in System | Tagged , | Comments Off on I/O redirect in linux/unix with examples

How to use top command to monitor cpu usage in linux/unix

Linux top command monitor CPU: to monitor system CPU usage, to monitor the usage of multiple cores of the system CPU, to sort by cpu usage ascending/descending Continue reading

Posted in Monitor | Tagged , | Comments Off on How to use top command to monitor cpu usage in linux/unix

Shell tutorial

The Shell is a program written in C language, it is a bridge use Linux users.The Shell is a command language and a programming language.Shell is a kind of application, the application provides an interface to the user through the … Continue reading

Posted in Internet Technology | Tagged , | Comments Off on Shell tutorial

df command tutorial in linux/unix with examples and use cases

linux df command – report file system disk space usage linux df command displays the amount of disk space available on the file system containing each file name argument.  If no file name is given, the space available on all … Continue reading

Posted in System | Tagged , , | Comments Off on df command tutorial in linux/unix with examples and use cases

du command tutorial in linux/unix with examples and use cases

Linux du command – estimate file space usage Linux du command recursively summarizes the disk usage of a file or directory. Syntax Options -0, –null end each output line with NUL, not newline -a, –all    write counts for all … Continue reading

Posted in System | Tagged , , | Comments Off on du command tutorial in linux/unix with examples and use cases

mkdir command tutorial in linux/unix with examples and use cases

linux mkdir command – make directories Linux mkdir command is used to create directories. If the directory does not exist, it is created. Syntax Options -m, –mode=MODE set file mode (as in chmod), not a=rwx – umask -p, –parents no … Continue reading

Posted in File & Directory | Tagged , | Comments Off on mkdir command tutorial in linux/unix with examples and use cases

rmdir command tutorial in linux/unix with examples and use cases

linux rmdir command – remove empty directories Linux rmdir command is used to remove directories. If the directory is empty, it is removed. If the rmdir directory is not empty, the error message “Directory not empty”. You need to use … Continue reading

Posted in File & Directory | Tagged , | Comments Off on rmdir command tutorial in linux/unix with examples and use cases