From 3ec8875bf12609157da0af5a02f53330d5e98152 Mon Sep 17 00:00:00 2001 From: Rajasimha Reddy Date: Fri, 1 Mar 2019 20:21:48 +0530 Subject: [PATCH] Add locate command (#30902) * Add locate command * fix: formatting * fix: formatting --- guide/english/linux/basic-linux-commands/index.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/guide/english/linux/basic-linux-commands/index.md b/guide/english/linux/basic-linux-commands/index.md index a51b293d2c..f3fd06c869 100644 --- a/guide/english/linux/basic-linux-commands/index.md +++ b/guide/english/linux/basic-linux-commands/index.md @@ -5,7 +5,7 @@ title: Basic Linux Commands When starting out with Linux, there are some basic commands everyone should know. - 1. **cd** - change directory +1. **cd** - change directory - `cd` followed by a directory or file path will take you inside that directory (folder). 2. **ls** - list command @@ -98,6 +98,14 @@ When starting out with Linux, there are some basic commands everyone should know 28. **chmod** - change permission - Use 'chmod' to make a file executable and to change the permissions granted to it in Linux. For the example , imagine you have a file named `myFile.txt` . But it can't executable because you not have a permission to this file , you can use the command `chmod +x myFile.txt` or `chmod 755 myFile.txt`. +29. **locate** +- Used to locate a file in the system + Example: + ```sh + locate sample.txt + /home/rajasimha/Desktop/sample.txt + ``` + ### 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.