Skip to content

Conversation

deinonychus
Copy link

No description provided.

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.

# 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