ChinaUnix.net
相关文章推荐:

linux fuser命令

我用ps查到有如下人登陆 guest pts/4,如何用fuser杀掉它呢?

by wjcoolwj - Solaris - 2004-03-09 10:02:18 阅读(2248) 回复(2)

相关讨论

fuser就知查看那一个进程正在使用该文件系统, 哪么有没有一个命令是可以知道那一个文件系统正在被改进程使用? 例如我输入 nohup vmstat 2 >>/tmp/vmstat.log & ps -ef |grep vmstat 只看到"vmstat 2" 知道它正在运行, 但是有什么办法可以看到这个命令正在使用/tmp/vmstat.log呢? 谢谢

by Nikolai - AIX - 2008-07-11 15:44:12 阅读(2075) 回复(3)

mount 和 umount 命令 现在,文件系统已经创建成功,您应该挂载分区了。挂载文件系统的命令是 mount,其语法是: mount [选项] [-o 挂载选项] 在本例中,我们首先会将分区临时挂载在 /mnt (或您选择的任何其它挂载点:请记住,挂载点必须已经存在)。挂载我们新创建的分区的命令是: $ mount -t ext3 /dev/hdb1 /mnt -t 选项用于指定分区上文件系统的类型。您最常遇到的文件系统应该是 ext2FS(GNU/linux 文件系统)或 ext3FS(改进...

by huaihe0410 - Solaris文档中心 - 2008-11-10 17:39:09 阅读(4301) 回复(0)

如题。当前目录下./有4个文件a,b,c,d我想判断哪些文件正在使用,如果文件未被使用,则删除。 请大家帮帮忙,谢谢。

by 灿烂小猪 - Shell - 2007-10-10 12:58:38 阅读(3611) 回复(3)

# fuser -u /dev/vg01/lvol1 This lists process IDs and login names of processes using /dev/vg01/lvol1. # fuser -u /etc/passwd This lists process IDs and login names of processes that have the passwd file open. # fuser -uc /opt This lists process IDs and login names of processes that have open files in the /opt file system. # fuser -ku /dev/vg01/lvol1 This terminates all processes that are preventin...

by gaoshixing - HP文档中心 - 2009-07-28 15:25:15 阅读(4092) 回复(0)

很少使用fuser,感觉如果一个文件被某个进程修改的话,那么用fuser就能看出事哪个进程正在修改,但是测试了一下,发现并不是这样的 SESSION A正在VI /home/oracle/temp/b.txt SESSION B 则执行 fuser /home/oracle/temp/b.txt 发现没有任何信息,后来看脚本裁发现这个只是针对目录 [ 本帖最后由 IOOOOOOOOOO 于 2009-5-18 18:31 编辑 ]

by IOOOOOOOOOO - Shell - 2009-05-18 19:47:40 阅读(1133) 回复(1)

fuser /dev/dsk/c0d0s5 /dev/dsk/c0d0s5: 712co 463c 执行一段脚本,但是系统叫我执行fuser /dev/dsk/c0d0s5,我按照系统的提示做,我知道fuser /dev/dsk/c0d0s5是找谁还在对 /dev/dsk/c0d0s5做操作,但是不知道这个 712co 463c表示什么意思

by iselina870217 - Solaris - 2007-09-29 16:33:24 阅读(2314) 回复(5)

要编个SHELL::有很多用户对1个目录下的文件进行操作(这个目录下有很多文件),我想知道A用户到底打开了或正在写哪个文件,该怎样做?(不是用 ps -ef 看执行哪个进程) 我编了1个,大家看看 echo "\n\n Pls. input user name ...\n" sleep 3 read user ls * > ./file.name while read filename do fuser -u $filename |grep $user|awk -F":" '{print $1}' >>./user.file done < ./file.name exit 0 可是fuser -u $filen...

by roninlin - Shell - 2005-06-03 13:05:18 阅读(1205) 回复(2)

my_solaris% pwd /home/lc my_solaris% fuser -cu /home/lc /home/lc: fuser: 无效的自变量 my_solaris% fuser -c -u /home/lc /home/lc: fuser: 无效的自变量 my_solaris% 是否需要设置某些环境变量. 谢谢.

by lc1999 - Solaris - 2011-12-02 11:11:31 阅读(5542) 回复(5)

1. 系统 # passwd:修改口令 # exit:退出系统 2. 文件 # cp:复制文件或目录,参数:-a递归目录,-i覆盖确认 # mv:改名移动 # rm:删除,参数:-r递归删除 3. 目录 # mkdir:创建目录 # rmdir:删除空目录 # cd:改变工作目录 # pwd:查看当前路径 # ls:列目录,参数:-a所有文件,-c按时间排序,-l详细信息 4. 文本 # sort:排序 # uniq:删除重复行 5. 备份压缩 # tar:档案,参数:-c创建新档案,-r追加到末尾,-t列出档案内...

by liyf0371 - Solaris文档中心 - 2009-10-28 09:22:27 阅读(4954) 回复(1)

帮忙看看哪里错了,总是会多显示目录: [code] #include #include #include #include #include #define BUFSIZE 1000 ino_t getnode(char *filename); /*return ino_t st_ino. st_ino is the I-Node Serial number*/ void printpath(ino_t this_node); void getname(ino_t my_node,char *dir,char str[]); /*return directory name */ int main(int argc,char **argv) {...

by lvscluster - C/C++ - 2009-05-23 12:32:57 阅读(1308) 回复(2)