LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2015, 06:54 AM   #1
wileyfox1
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Rep: Reputation: Disabled
inputting files in command line software


so i'm totally new to linux/ubuntu so this is a very basic question im sure ppl will be able to help me on.

when im running software through the terminal, inputting [-h] shows you how to run the software through the terminal. it might say like fastx_processor [-i INFILLE] [-o OUTFILE] [-z make output file zipped] etc.

so would the correct way to input this into the command line be something like this? :

fastx_processor [-i /home/user/blahblahfile name] [-o /home/Dekstop] [-z]
 
Old 10-21-2015, 07:27 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 3,986

Rep: Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113Reputation: 1113
Quote:
Originally Posted by wileyfox1 View Post
so i'm totally new to linux/ubuntu so this is a very basic question im sure ppl will be able to help me on.

when im running software through the terminal, inputting [-h] shows you how to run the software through the terminal. it might say like fastx_processor [-i INFILLE] [-o OUTFILE] [-z make output file zipped] etc.

so would the correct way to input this into the command line be something like this? :

fastx_processor [-i /home/user/blahblahfile name] [-o /home/Dekstop] [-z]
The square brackets are not supposed to be entered. They indicate optional parts of the command line.

To use your example, the following commands (among others) would be syntactically correct:
  • fastx_processor
  • fastx_processor -i /home/user/blabla
  • fastx_processor -z
  • fastx_processor -i /home/user/blabla -o /home/Dekstop -z

If you want to enter a file name that contains white space, such as your /home/user/blahblahfile name above, you have to surround it with quotation marks, like so: "/home/user/blahblahfile name". Otherwise, the white space will be interpreted as a separator between command line arguments.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] remove readme files from a large group of *.zip files with a command line function thealmightyos Linux - General 1 08-14-2014 05:24 PM
inputting values into variables for math from the command line? dave247 Linux - General 2 10-22-2010 02:50 PM
getting pid using PS command by inputting full comand name ravi2082 Linux - Newbie 3 08-16-2006 08:34 AM
any command line software for ogg concatenation but ogmcat.? Joining ogg files Emmanuel_uk Linux - Software 1 06-15-2006 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration