10 More Discussions You Might Find Interesting
1. Cybersecurity
Hello
im working on "remover script" which try to remove "kthrotlds MINER VIRUS"
in next part of my remover script i have to work on files that it destroyed,
virus use chattr to open and lock files and replace them with malicious content
im looking for a solution to remove chattr and disable... (9 Replies)
Discussion started by: nimafire
9 Replies
2. UNIX for Dummies Questions & Answers
I want to copy a file from the top directory into all the sub-folders and all of the sub-folders of those sub-folder etc. Does anyone have any idea how to do this?
Thanks in advance of any help you can give. (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies
3. UNIX for Advanced & Expert Users
I was working on a shell script and found that the find command took too long, especially when I had to execute it multiple times. After some thought and research I came up with two functions.
fileScan()
filescan will cd into a directory and perform any operations you would like from within... (8 Replies)
Discussion started by: newreverie
8 Replies
4. Shell Programming and Scripting
Hi,
I'm in the process of writing a shell script which will be ran under cron hourly and will check for files of specific age in my ftp folder, then moves those over inside a folder called "old" (which is within the ftp dir). But, I'm unable to figure out how to exclude the "old" folder when... (1 Reply)
Discussion started by: mutex1
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice?
thanks in advance! (13 Replies)
Discussion started by: bimba17
13 Replies
6. Programming
What is the best way to completely remove dir with it's content ???
rmdir deletes only EMPTY dirs as i know.
The man page of remove function says "remove() deletes a name from the file system." Can it remove any dir recursively ??? :rolleyes: (7 Replies)
Discussion started by: Trump
7 Replies
7. UNIX and Linux Applications
I think I've seen out there that there is a command to ignore specific files within a directory when doing a (-R) recursive diff. I've never used this so I was wondering if there was anyone who could provide an example how I would run this. My thoughts are something like:
cvs diff -i <fileName1>... (2 Replies)
Discussion started by: airon23bball
2 Replies
8. UNIX for Dummies Questions & Answers
If use tar file from a directory , how to exclude a sub-directory in this directory ?
ll
drw-r--r-- 1 root root 4096 Oct 12 11:58 b
drw-r--r-- 1 root root 4096 Oct 12 10:54 c
drwxr-xr-x 2 root root 4096 Oct 12 11:57 d
drw-r--r-- 1 root root 4096 Oct 12 10:54 d
eg . I want to tar all files... (2 Replies)
Discussion started by: ust
2 Replies
9. Programming
I want to copy a directory recursively ( it again has directories) and the directory is on windows and is nfsmounted in vxWorks, i am using unix to develop the code for this, can any one suggest me how to copy the directories recursively. (7 Replies)
Discussion started by: deepthi.s
7 Replies
10. UNIX for Dummies Questions & Answers
OS: SunOS perfs01 5.8 Generic_117350-23 sun4u sparc SUNW,UltraAX-i2
I want to tar a directory, but there are subdirectoires I want to exclude. Does anyone know how to do it?
Please help.
thanks. (1 Reply)
Discussion started by: leemjesse
1 Replies
gfs2_tool(8) System Manager's Manual gfs2_tool(8)
NAME
gfs2_tool - interface to gfs2 ioctl/sysfs calls
SYNOPSIS
gfs2_tool COMMAND [OPTION]...
DESCRIPTION
gfs2_tool is an interface to a variety of the GFS2 ioctl/sysfs calls. Some of the functions of gfs_tool have been replaced by standard sys-
tem tools such as mount and chattr, so gfs2_tool doesn't have as many options as gfs_tool used to.
COMMANDS
clearflag Flag File1 File2 ...
Clear an attribute flag on a file. This is now obsolete and kept only for backward compatibility, chattr is the preferred way to
clear attribute flags. See setflag for available flags. This option will probably be removed at a future date.
freeze MountPoint
Freeze (quiesce) a GFS2 cluster.
gettune MountPoint
Print out the current values of the tuning parameters in a running filesystem. A better source of similar (more comprehensive)
information is that in the /proc/mounts file. Running the mount command with no arguments will also provide the same information.
This option is considered obsolete and will probably be removed at some future date.
journals MountPoint
Print out information about the journals in a mounted filesystem.
lockdump MountPoint
Print out information about the locks this machine holds for a given filesystem. This information is also available via the debugfs
glock dump file, and accessing that file is the preferred method of obtaining a dump of the glock state.
sb device proto [newvalue]
View (and possibly replace) the name of the locking protocol in the file system superblock. The file system shouldn't be mounted by
any client when you do this.
sb device table [newvalue]
View (and possibly replace) the name of the locking table in the file system superblock. The file system shouldn't be mounted by
any client when you do this.
sb device ondisk [newvalue]
View (and possibly replace) the ondisk format number in the file system superblock. The file system shouldn't be mounted by any
client when you do this. No one should have to use this.
sb device multihost [newvalue]
View (and possibly replace) the multihost format number in the file system superblock. The file system shouldn't be mounted by any
client when you do this. No one should have to use this.
sb device uuid [newvalue]
View (and possibly replace) the uuid in the file system superblock. The file system shouldn't be mounted by any client when you do
this. The new uuid value should be in the standard uuid format. For example: 1AEA8269-15C5-72BD-6D83-8720B17AA4EE
sb device all
Print out the superblock.
setflag Flag File1 File2 ...
Set an attribute flag on a file. The currently supported flags are jdata, immutable, appendonly, noatime, and sync. The chattr
command is the preferred way to set attributes on files. This option will probably be removed at a future date.
The jdata flag causes all the data written to a file to be journaled. If the jdata flag is set for a directory, all files and
directories subsequently created within that directory are also journaled. This behavior replaces the old inherit_jdata flag from
gfs. Same as chattr +j.
The immutable flag marks the file immutable. The behavior is similar to the immutable flag in the ext2/3 filesystems. All write
access is denied. Same as chattr +i.
The appendonly flag causes all data to be written at the end of the file. Same as chattr +a.
The noatime flag disables updates to the file's access time. Same as chattr +A.
The sync flag causes data written to the file to be sync'ed to stable storage immediately. Same as chattr +S.
settune MountPoint parameter newvalue
Set the value of tuning parameter. Use gettune for a listing of tunable parameters. The mount -oremount command is the preferred
way to set the values of tunable parameters. At some future stage, when all parameters can be set via mount, this option will be
removed.
unfreeze MountPoint
Unfreeze a GFS2 cluster.
version
Print out the version of GFS2 that this program goes with.
withdraw MountPoint
Cause GFS2 to abnormally shutdown a given filesystem on this node. This feature is only useful for testing and should not be used
during normal filesystem operation.
gfs2_tool(8)