What Is G in Linux?
Contents -G Sets the Supplementary, or Additional, Groups. These Are the Groups in /Etc/Group That List Your User Account. This Might Include Groups Such as...
-G sets the supplementary, or additional, groups. These are the groups in /etc/group that list your user account. This might include groups such as sudo , staff , etc.
What does G mean in Linux?
g tells sed to “globally” substitute (change everything that matches the pattern on each line, rather than only the first on a given line). … For instance, if it contained a space or tab, that would break the substitution parameter passed by the shell to sed into two parts (an error).
Must Read
What is G in SED?
sed ‘s/regexp/replacement/g’ inputFileName > outputFileName. In some versions of sed, the expression must be preceded by -e to indicate that an expression follows. The s stands for substitute, while the g stands for global, which means that all matching occurrences in the line would be replaced.