Added top to the useful commands (#20551)
* Added top the useful commands The top command is one of the most useful command for the command line of linux. It should definitely be included in the list * Fix backticks in 8, 9, 14 and 15pull/33398/head
parent
4a48031353
commit
6eaa423403
|
@ -30,10 +30,10 @@ When starting out with linux, there are some basic commands everyone should know
|
|||
- **Warning, this command is capable of destroying entire systems, use with caution**
|
||||
|
||||
8. **touch** - creates file
|
||||
- The touch command is used to create a file. It can be anything, from an empty txt file to an empty zip file. 'touch new.txt' will create a new file with name new.
|
||||
- The `touch` command is used to create a file. It can be anything, from an empty txt file to an empty zip file. 'touch new.txt' will create a new file with name new.
|
||||
|
||||
9. **mv** - move
|
||||
- Use the mv command to move files through the command line. We can also use the mv command to rename a file. For example, if we want to rename the file “text” to “new”, we can use 'mv text new'.
|
||||
- Use the `mv` command to move files through the command line. We can also use the mv command to rename a file. For example, if we want to rename the file “text” to “new”, we can use 'mv text new'.
|
||||
- **Warning, this command is capable of destroying entire systems, use with caution**
|
||||
|
||||
10. **right-click** - copy and paste
|
||||
|
@ -49,9 +49,15 @@ When starting out with linux, there are some basic commands everyone should know
|
|||
- Use `clear` to simply clear all output from your terminal.
|
||||
|
||||
14. **cp** - copy files and directories
|
||||
- Use `cp` to copy a file or a direcotry with files inside it to another location using command 'cp CURRENT_FILE-LOCATION DESTINATION_FOLDER'. Add '-r' flag to copy a directory that is not empty.
|
||||
- Use `cp` to copy a file or a direcotry with files inside it to another location using command `cp CURRENT_FILE-LOCATION DESTINATION_FOLDER`. Add `-r` flag to copy a directory that is not empty.
|
||||
|
||||
15. **grep** - The grep searches any given input files, selecting lines that match one or more patterns.
|
||||
15. **top** - shows the system load
|
||||
- Use `top` to get information about running processes of your system, the amount or RAM they allocate and the CPU percentage that they use. 'Top' is interactive so do not forget to press `q` when you want to quit.
|
||||
|
||||
16. **df -h** Checks disk space in human readable form
|
||||
- Shows the size, amount used, amount available and capacity percentage of mounted drives/partitions.
|
||||
|
||||
17. **grep** - The grep searches any given input files, selecting lines that match one or more patterns.
|
||||
- use `grep` to find a file, a directory, some text in the file/directory.
|
||||
**Example:**
|
||||
```sh
|
||||
|
@ -61,10 +67,6 @@ When starting out with linux, there are some basic commands everyone should know
|
|||
25409 s004 Ss 0:00.04 login -pf <user>
|
||||
```
|
||||
|
||||
15. **df -h** Checks disk space in human readable form
|
||||
- Shows the size, amount used, amount available and capacity percentage of mounted drives/partitions.
|
||||
|
||||
|
||||
### 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.
|
||||
|
|
Loading…
Reference in New Issue