Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added "cd -" #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

added "cd -" #56

wants to merge 3 commits into from

Conversation

deinonychus
Copy link

No description provided.

@@ -1034,6 +1034,16 @@ find . -type f -empty -delete
find . -type f | wc -l
```

##### List all files with name [FILE] under /
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

searching through on entire system can be very resource-intensive and time-consuming, and should be done with caution. I tend not include this example here, as previous examples show how to search file with name.

@@ -3180,6 +3190,15 @@ cd $(mktemp -d)
# for example, this will create a temporary directory "/tmp/tmp.TivmPLUXFT"
```

##### Quickly return to last working directory
Copy link
Owner

@onceupon onceupon Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can use

Return to the previous directory
cd -

i suggest removing the comments below as they are hard to understand:

# example that will get you back to home directory:
# cd ~
# cd /tmp/tmp.TivmPLUXFT
# cd -

as most oneliners are quick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants