CGCLEAR(1) libcgroup Manual CGCLEAR(1)NAME
cgclear - unload the cgroup filesystem
cgclear [-e] [-l <filename>] [-L <directory>] [...]
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.
specifies the config file to read. This option can be used multiple times and can be mixed with -L option.
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
CGCLASSIFY(1) libcgroup Manual CGCLASSIFY(1)NAME
cgclassify - move running task(s) to given cgroups
cgclassify [-g <controllers>:<path>] [--sticky | --cancel-sticky] <pidlist>
this command moves processes defined by the list of processes (pidlist) to the given control groups.
The pids in the pidlist are separated by spaces
defines the control groups where the task will be moved. controllers is a list of controllers and path is the relative path to con-
trol groups in the given controllers list.
This flag can be used multiple times to define multiple pairs of lists of controllers and relative paths. Instead of the list of
all mounted controllers, the wildcard * can be used.
If this option is not used then cgclassify will automatically move the task to a control group based on /etc/cgrules.conf.
If this option is used, the daemon of service cgred (cgrulesengd process) does not change both the specified pidlist and their chil-
dren tasks. Without this option, the daemon does not change the specified pidlist but it automacically changes their child tasks to
the right cgroup based on /etc/cgrules.conf.
If this option is used, the daemon of service cgred (cgrulesengd process) can automatically change both the specified pidlist and
their child tasks to the right cgroup based on /etc/cgrules.conf.
default libcgroup configuration file
cgrules.conf (5), cgexec (1)
Linux 2009-03-15 CGCLASSIFY(1)
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)
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 .
sakthi (4 Replies)
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,
... (2 Replies)
create a file inside a directory in one command
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)
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)
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
I want to check if these... (3 Replies)
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)