CGCLEAR(1) libcgroup Manual CGCLEAR(1)NAME
cgclear - unload the cgroup filesystem
SYNOPSIS
cgclear [-e] [-l <filename>] [-L <directory>] [...]
DESCRIPTION
Without parameters, this command moves all the tasks inside the various cgroups to the root cgroup, deletes all the cgroups and finally
unmounts the cgroup filesystem from the system.
If one or more config files are specified, only groups defined in the config files are removed. The files are processed in reverse order,
i.e. the last file on command line is processed first, so cgclear can have the same command line arguments as appropriate cgconfigparser.
-l, --load=<filename>
specifies the config file to read. This option can be used multiple times and can be mixed with -L option.
-L, --load-directory=<directory>
specifies the directory, which is searched for configuration files. All files in this directory will be processed in alphabetical
order as they were specified by -l option. This option can be used multiple times and can be mixed with -l option.
-e specifies that only empty groups should be removed. If a group defined in a config file has tasks inside or has a subgroup, it won't
be removed. This option works only with -l or -L options.
SEE ALSO cgconfigparser(1)Linux 2009-10-23 CGCLEAR(1)
Check Out this Related Man Page
CGCONFIGPARSER(8) libcgroup Manual CGCONFIGPARSER(8)NAME
cgconfigparser - setup control group file system
SYNOPSIS
cgconfigparser [-h] [-l <filename>] [-L <directory>] [...]
OPTIONS -h, --help
Displays help.
-l, --load=FILE
Parses the control groups configuration file Sets up the control group file system defined by the configuration file and mounts
mount points defined by the configuration file. The format of the file is described in cgconfig.conf. This option can be used mul-
tiple times and can be mixed with -L option.
-L, --load-directory=DIR
Finds all files in given directory and parses them in alphabetical order like they were specified by -l option. This option can be
used multiple times and can be mixed with -l option.
-a <agid>:<auid>
defines the default owner of the rest of the defined control group's files. These users are allowed to set subsystem parameters and
create subgroups. The default value is the same as has the parent cgroup.
-d, --dperm=mode
sets the default permissions of a control groups directory. The permissions needs to be specified as octal numbers e.g. -d 775.
-f, --fperm=mode
sets the default permissions of the control group files. The permissions needs to be specified as octal numbers e.g. -f 775. The
value is not used as given because the current owner's permissions are used as an umask (so 777 will set group and others permis-
sions to the owners permissions).
-s, --tperm=mode
sets the default permissions of the control group tasks files. The permissions needs to be specified as octal numbers e.g. -f 775.
The value is not used as given because the current owner's permissions are used as an umask (so 777 will set group and others per-
missions to the owners permissions).
-t <tuid>:<tgid>
defines the default owner of tasks file of the defined control group. I.e. this user and members of this group have write access to
the file.
ENVIRONMENT VARIABLES
CGROUP_LOGLEVEL
controls verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.
SEE ALSO
cgconfig.conf (5)
Linux 2009-03-16 CGCONFIGPARSER(8)
i'm using SunOS 5.7 and I know theres a ls option for seeing what kind of files are in a directory. I was wondering if there was a ls option that could see if the files are txt or files that can be opened in vi (1 Reply)
How do I perform a command to multiple files? For example, I want to look at all files in a directory and print the ones that do not contain a certain string. How do I go about doing this? (4 Replies)
hi ,
rm -f $(filename)*
removes ,not only $filename* but all the files in the directory .Why??
Imagine I have scripted for some one and a half hour and all the files are removed. F :D rustrated ..really .
regards,
sakthi (4 Replies)
Hi,
I have a load of if statements that look for files in a directory, I want to be able to count them up and the total files confirmed in an email? I ahve tried expr but i this does not work and it only reads in the first if and ignores the rest.
Please see script,
#!/bin/ksh
... (2 Replies)
create a file inside a directory in one command
like
current directory is root
i want to create a directory inside root and a file inside that directory
is there any command like
touch /d/d.txt d directory does not exist (1 Reply)
Hello everyone,
I'm new a to Linux command line. I was executing some commands to the data i have when i faced this problem.
I have a directory contanining thousands of files inside, with many many different names.
I wanted to pick the FILENAMES that contains '-1.mol' in thier name, and... (2 Replies)
I need to Write a shell script that allows some system-administration tasks to be preformed automatically from a menu-driven interface. with automated following tasks:
Copy directory tree
Delete files or directories
Output Information (this part is done )
*Copy directory tree
The “Copy... (2 Replies)
Hi all,
Please somebody help me with this:
I want to check if the files listed in a text file, are found under a directory or not.
For example: the file is list_of_files.txt, which contains inside this rows:
# cat list_of_files
logs
errors
paths
debug
#
I want to check if these... (3 Replies)
Hello,
This would be very basic question to most of you, but for me as a newbie it is an un-know.
I would like to load a configuration file into memory before executing a specific command. For example: I have a config file that holds all the database connectivity information and I'd like to... (5 Replies)