FAQ: Navigation - Helper Commands

This community-built FAQ covers the “Helper Commands” exercise from the lesson “Navigation”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Computer Science
Web Development
Build a Website with HTML, CSS, and Github Pages
Create a Front-End App with React

Learn the Command Line

FAQs on the exercise Helper Commands

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!
You can also find further discussion and get answers to your questions over in #get-help.

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head to #get-help and #community:tips-and-resources. If you are wanting feedback or inspiration for a project, check out #project.

Looking for motivation to keep learning? Join our wider discussions in #community

Learn more about how to use this guide.

Found a bug? Report it online, or post in #community:Codecademy-Bug-Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I was in the middle of the ‘Touch’ exercise when I got distracted. Without thinking, I entered too many "cc …"s. without meaning to - going all the way back to the ‘/’ when I entered ‘pwd’. Luckily, the previous lesson had the path /home/ccuser/workspace/blog/2014/dec/ (and then I went back to ‘touch’ exercise and it had reset anyway, haha).

Just wondering - is there a way to see the entire file system tree, not just the name of the directory we’re working in?

Codecademy has provided the filesystem for the lesson:

Thanks for responding! I went beyond the blog directory and was stuck in “/” (where the ls showed the options: bin, dev, media, lib, usr etc.) So, I was exploring the “usr” files because 1) I remembered there being a “user” in the pwd somewhere, and 2) I didn’t think to just go back a lesson to find the path. I finally just reset. :slight_smile:

It did have me thinking though - if I wanted to find a specific file’s path, while in the /home directory, (such as home/ccuser/workspace/blog/2014/dec), is there any way to do this? Like a “Find file *2014” that will print directory to 2014, while you’re in the home directory?

You could use the find command to do this. Keep in mind that if you’re searching from the root directory (or any higher-level directory), it will take a very, very long time to find a file.

Example

find path -name "filename"

You’d replace path with where you want your search to occur (e.g. home/ccuser/workspace) and filename with the name of the file (including the filename extension, like .jpg, .mp4, etc.).