From ac5b3067d8caf5155c649f7b27842f23812cea02 Mon Sep 17 00:00:00 2001 From: Ikehviky <43616329+Ikehviky@users.noreply.github.com> Date: Mon, 5 Nov 2018 08:00:34 +0100 Subject: [PATCH] Update index.md (#28374) * Update index.md * Add 'find' to the article * Add 'find' to the article * Add 'find' to the article * Add 'grep' to the article * Fixed formatting issues in OP's PR --- guide/english/linux/basic-linux-commands/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/guide/english/linux/basic-linux-commands/index.md b/guide/english/linux/basic-linux-commands/index.md index 7eee476a827..48488a40cf3 100644 --- a/guide/english/linux/basic-linux-commands/index.md +++ b/guide/english/linux/basic-linux-commands/index.md @@ -70,6 +70,15 @@ When starting out with linux, there are some basic commands everyone should know 15. **sudo** - execute a command as super user - A widely used command in the Linux command line, sudo stands for "SuperUser Do". So, if you want any command to be done with administrative or root privileges, you can use the sudo command. +15. **kill** - stops runing process +- The `kill` command sends a signal to a running process. This default action normally stops processes. If you want to stop a process, specify the process ID (PID) in the `ProcessID` variable. The shell reports the PID of each process that is running in the background (unless you start more than one process in a pipeline, in which case the shell reports the number of the last process). You can also use the `ps` command to find the process ID number of commands. + +16. **find** - search for files in a directory hierarchy +- `find` searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence, until the outcome is known (the left hand side is false for and operations, true for or), at which point `find` moves on to the next file name. + +17. **grep** - print lines matching a pattern +- `grep` searches for `PATTERN` in each FILE. A FILE of `“-”` stands for standard input. If no FILE is given, recursive searches examine the working directory, and nonrecursive searches read standard input. By default, `grep` prints the matching lines. + ### Useful Resources for Practice: - [JSLinux](https://bellard.org/jslinux/vm.html?url=https://bellard.org/jslinux/buildroot-x86.cfg): Run the terminal inside your browser. Great for practice. - [LearnShell](https://www.learnshell.org/): Interactive Linux shell (terminal) tutorials.