LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-09-2016, 11:18 AM   #1
reblark
LQ Newbie
 
Registered: Sep 2016
Location: San Francisco
Posts: 1
Blog Entries: 1

Rep: Reputation: Disabled
Cool Flags


Simple question for first post. What are the flags -f and -L ? Thanks.
 
Old 09-09-2016, 11:27 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
For which program/utility/script?

The flags are defined by the author(s) of the specific program/utility/script you are using.

For most programs that come with Linux you can type "man <program>" to get a manual for it that will tell you what each flag does.

For example if you're using the "ls" command and you type "man ls" it will contain information like:
Quote:
-f do not sort, enable -aU, disable -lst
and
Quote:
-L, --dereference
when showing file information for a symbolic link, show informa-
tion for the file the link references rather than for the link
itself
However if you're using the "vim" command and you type "man vim" you'll see completely different meanings for these flags as used with that command:
Quote:
-f Foreground. For the GUI version, Vim will not fork and
detach from the shell it was started in. On the Amiga, Vim
is not restarted to open a new window. This option should
be used when Vim is executed by a program that will wait
for the edit session to finish (e.g. mail). On the Amiga
the ":sh" and ":!" commands will not work.
and
Quote:
-L Same as -r.
Note that all programs do not have all flags. For example if you ran "man who" you'd see it does have flags but none of them are "-f" or "-L".

Also note that Linux is case sensitive so you might have for example both "-g" and "-G" with different meanings for the same command.

Last edited by MensaWater; 09-09-2016 at 11:38 AM.
 
1 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
gentoo use flags lemonlaw95 Linux - Newbie 3 03-09-2009 11:17 PM
USE flags deucedlt Linux - Distributions 3 02-24-2008 04:25 PM
CC flags and the like Garp Linux - Software 2 05-17-2004 04:48 AM
rpmbuild flags vejnovic Linux - Software 0 05-03-2004 08:22 AM
--tcp-flags bbenz3 Linux - Networking 2 03-12-2002 05:07 PM


All times are GMT -5. The time now is 12:56 PM.

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