# How to give file path in qiime2 virtualbox installs

**URL:** https://forum.qiime2.org/t/how-to-give-file-path-in-qiime2-virtualbox-installs/2207
**Category:** User Support
**Tags:** virtualbox
**Created:** [December 13, 2017, 6:00pm UTC](https://forum.qiime2.org/t/how-to-give-file-path-in-qiime2-virtualbox-installs/2207 "2017-12-13T18:00:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sajjad.sarikhan](https://forum.qiime2.org/user_avatar/forum.qiime2.org/sajjad.sarikhan/32/749_2.png) [@sajjad.sarikhan](https://forum.qiime2.org/u/sajjad.sarikhan)
#### Post date: [December 13, 2017, 6:00pm UTC](https://forum.qiime2.org/t/how-to-give-file-path-in-qiime2-virtualbox-installs/2207/1 "2017-12-13T18:00:06Z")

</div>

Hi!  
I wonder if you could help me to use the following command in Qiime2 virtualbox machine.  
How would be the command style?  
Why on the earth command formats are differing between qiime2 native install and virtualbox and docker?

qiime tools export   
feature-table.qza   
--output-dir exported-feature-table

imagine i have my table.qza file in my shared file at the address: /media/sf\_QIIME, then how can i use that address at the above mentioned command?  
best wishes

---

<div class="post-metadata">

### Author: ![jairideout](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jairideout/32/9_2.png) [@jairideout](https://forum.qiime2.org/u/jairideout)
#### Post date: [December 14, 2017, 6:09pm UTC](https://forum.qiime2.org/t/how-to-give-file-path-in-qiime2-virtualbox-installs/2207/3 "2017-12-14T18:09:56Z")

</div>

Hi @sajjad.sarikhan!

> [@sajjad.sarikhan](#):
>
> I wonder if you could help me to use the following command in Qiime2 virtualbox machine.
> 
> How would be the command style?
> 
> Why on the earth command formats are differing between qiime2 native install and virtualbox and docker?

The formatting of the commands will be the same whether you're using a native install, VirtualBox, or the AWS AMI; each of those environments provide a terminal emulator where you can run commands on the command line.

For example, the following command can be run in a native install, VirtualBox, or AWS:

```auto
qiime info

```

Now, the _file paths_ you use in the commands will need to be adapted, as the file paths you choose will be specific to your analyses, and those files could exist anywhere on your file system. QIIME 2 does not require that your data files exist in any particular location, nor does it place restrictions on what file names you choose. Thus, the commands provided in the QIIME 2 tutorials (and elsewhere) can be used in any of the installation/deployment environments I listed above, but you'll need to adapt the commands to suit your own data files.

> [@sajjad.sarikhan](#):
>
> and docker

The QIIME 2 Docker image requires some modifications to the commands you'll run -- this is just a requirement of Docker because it is a container-based VM, and it's not something we control (we don't develop Docker). See the [QIIME 2 Docker install guide](https://docs.qiime2.org/2017.11/install/virtual/docker/) for an example of how to format those commands (each command must be prefixed with `docker run` and some options).

> [@sajjad.sarikhan](#):
>
> qiime tools export
> 
> feature-table.qza
> 
> –output-dir exported-feature-table
> 
> imagine i have my table.qza file in my shared file at the address: /media/sf\_QIIME, then how can i use that address at the above mentioned command?

It looks like you're following along with the [exporting tutorial](https://docs.qiime2.org/2017.11/tutorials/exporting/). The command you pasted from the tutorial assumes you have a file called `feature-table.qza` in your _current working directory_. If you're following along with the tutorial, the `feature-table.qza` file will have been previously downloaded to your current working directory -- this is why the command works without any modifications (we intentionally design the tutorials this way to make them easy to follow along with, i.e. copy-and-paste).

As mentioned above, you'll need to adapt this command to work with your own data. If your feature table file is located at `/media/sf_QIIME/table.qza`, you would provide that file path in your `export` command:

```auto
qiime tools export /media/sf_QIIME/table.qza --output-dir exported-feature-table

```

Note that `/media/sf_QIIME/table.qza` is an _absolute path_, and `exported-feature-table` is a _relative path_, so if you run this command, a directory called `exported-feature-table` will be created in your _current working directory_.

If you're not familiar with the terms _current working directory_, _absolute path_, and _relative path_, I recommend following along with some Linux/macOS command line tutorials online, as they'll teach you these general concepts (and much more!) that apply to any work you'll do from the command line (i.e. it's not just applicable to QIIME 2 commands). The time you invest in learning the command line interface will definitely pay off in the long run!

---

<div class="post-metadata">

### Author: ![sajjad.sarikhan](https://forum.qiime2.org/user_avatar/forum.qiime2.org/sajjad.sarikhan/32/749_2.png) [@sajjad.sarikhan](https://forum.qiime2.org/u/sajjad.sarikhan)
#### Post date: [December 15, 2017, 11:23am UTC](https://forum.qiime2.org/t/how-to-give-file-path-in-qiime2-virtualbox-installs/2207/5 "2017-12-15T11:23:45Z")

</div>

Hi @ jairideout

Thank you for your helpful comments. That solved my issue.  
With the best  
Sajjad

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [January 15, 2018, 5:23pm UTC](https://forum.qiime2.org/t/how-to-give-file-path-in-qiime2-virtualbox-installs/2207/6 "2018-01-15T17:23:50Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
