Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-09-2016, 10:18 AM   #1
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, 10:27 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
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:
-f do not sort, enable -aU, disable -lst
-L, --dereference
when showing file information for a symbolic link, show informa-
tion for the file the link references rather than for the link
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:
-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.
-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 10:38 AM.
1 members found this post helpful.


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 10:17 PM
USE flags deucedlt Linux - Distributions 3 02-24-2008 03:25 PM
CC flags and the like Garp Linux - Software 2 05-17-2004 03:48 AM
rpmbuild flags vejnovic Linux - Software 0 05-03-2004 07:22 AM
--tcp-flags bbenz3 Linux - Networking 2 03-12-2002 04:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:35 PM.

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