tools:bash:getting-started
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:bash:getting-started [2024/05/20 04:01] โ [Filesystem Traversal] Humphrey Boa-Gart | tools:bash:getting-started [2024/08/06 05:54] (current) โ external edit 127.0.0.1 | ||
---|---|---|---|
Line 91: | Line 91: | ||
===== Filesystem Traversal ===== | ===== Filesystem Traversal ===== | ||
- | Show [[wp> | + | Echo your shell' |
$ pwd | $ pwd | ||
- | Show file tree for //path//: | + | Show file tree for the directory |
$ tree path/ | $ tree path/ | ||
Line 107: | Line 107: | ||
$ ls | $ ls | ||
- | Display directory listing. Some options include: | + | Outputs a list of contents of the pwd. Some options include: |
* '' | * '' | ||
Line 119: | Line 119: | ||
* '' | * '' | ||
+ | To show the contents of the directory // | ||
+ | |||
+ | $ ls -lhAF foldername/ | ||
==== cd ==== | ==== cd ==== | ||
Line 224: | Line 227: | ||
$ grep searchterm path/ | $ grep searchterm path/ | ||
+ | For more information, | ||
===== Basic File and Directory Commands ===== | ===== Basic File and Directory Commands ===== | ||
Line 279: | Line 283: | ||
This command normally creates [[wp> | This command normally creates [[wp> | ||
- | To use '' | + | To use '' |
$ ln -s path/ | $ ln -s path/ | ||
Line 307: | Line 311: | ||
$ rm ./* | $ rm ./* | ||
| | ||
- | Delete all files within directory / | + | Delete all files within directory |
$ rm foldername/ | $ rm foldername/ | ||
Line 320: | Line 324: | ||
'' | '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | * Next Page: [[tools: | ||
+ | * [[tools: |
tools/bash/getting-started.1716177664.txt.gz ยท Last modified: (external edit)
Find this page online at: https://bestpoint.institute/tools/bash/getting-started
Find this page online at: https://bestpoint.institute/tools/bash/getting-started