Solved

freebsd syntax help

Posted on 2014-04-18
1
430 Views
Last Modified: 2016-02-11
Experts,

I have a hardware appliance that runs FreeBSD.

Suppose I drill into a directory like this:

shell
cd /flash/folder1

then I need to see what other directories are in folder1 so I type:

l-ls

now I see other directories and want to go into folder1a

Is there a way I can just go into folder1a from where I'm at? I've been hitting the up arrow and appending /folder1a
0
Comment
Question by:trojan81
1 Comment
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 400 total points
ID: 40009236
If the structure is
/flash/folder1/folder1a

and you are in /flash/folder1

then you can simply type
cd folder1a

to reach that folder.

cd stands for "change directory"

Other helpful commands:
cd .. will take you to the previous folder (so to /flash if you are in /flash/folder1)
cd / will take you to the root dir

http://www.linuxnix.com/2012/07/23-linux-cd-command-examples.html

HTH,
Dan
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now