cmdprefix

package
v0.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Touch   = "touch"
	HyphenE = "-e"
	HyphenA = "-a"
	HyphenG = "-G"
	Chown   = "chown"
	ChGroup = "chgrp"
	Root    = "root"
	UserMod = "usermod"
)

Variables

This section is empty.

Functions

func ChangeGroup

func ChangeGroup(isRecursive bool, groupName string) string

ChangeGroup Format: chgrp -R $group /dir

  • Recursive (changeGroupRecursiveFormat) : chgrp -R $group
  • Non-Recursive (changeGroupNonRecursiveFormat) : chgrp $group

func Chmod

func Chmod(isRecursive bool, wrapper *chmodhelper.RwxWrapper) string

Chmod Format :

  • Recursive : chmod -R 777 /dir
  • Non-Recursive : chmod 777 /dir

func ChownUser

func ChownUser(isRecursive bool, userName, groupName string) string

ChownUser Format: chown -R $user:$group /dir

  • Recursive : chown -R $user:$group /dir
  • Non Recursive : chown $user:$group /dir

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL