我经常让任务在屏幕内运行,以便我以后可以检查它们,但有时我需要检查哪个命令在屏幕内运行。它通常是各种 php 脚本,例如
screen -d -m nice -n -10 php -f convertThread.php start=10000
Run Code Online (Sandbox Code Playgroud)
我不记录哪些屏幕正在运行哪些命令,但我希望能够通过检查其中运行的命令来了解所取得的进展,而无需终止进程。
我在屏幕帮助页面中看不到任何选项。
我有一个文件夹 ( watch) 错误地装满了很多临时文件。我已经清除了所有这些文件,但该文件夹的大小仍然是 356 kB。过去,我已经将文件夹移开,创建了一个具有相同名称的新文件夹,并将所有文件复制到其中以使其恢复到以前的小尺寸。有没有办法在不重新创建文件夹的情况下将其缩小到小尺寸?
drwxr-xr-x 2 apache apache 4096 Nov 29 2014 details
drwxr-xr-x 2 apache apache 364544 Jan 21 17:24 watch
drwxr-xr-x 3 apache apache 4096 Jan 21 17:19 settings
Run Code Online (Sandbox Code Playgroud)
watch 有两个小文件:一个 .htaccess 和一个 index.php。
我有一个 ext4 文件系统。
我在尝试设置一点 ASCII 艺术以在连接和注销时显示时遇到了问题。
我可以使用 .bashrc 和 .bash_logout 为一个用户执行此操作,并通过创建 /etc/profile.d/motd.sh 设置登录 MOTD,但还没有找到设置通用注销 MOTD 的方法。我怎样才能做到这一点?
我正在运行 CentOS 6。
我启动了 QEMU 并立即否认它,但仍然在我的 shell 上接收输出:
aburk@aburk:~$ su
Password:
[root@aburk aburk]# QEMU_AUDIO_DRV="pa" QEMU_PA_SERVER="/run/user/1000/pulse/native" qemu-system-x86_64 -m 3096M -hda /dev/sdb -cpu host -smp cores=3,threads=1,sockets=1 --enable-kvm
WARNING: Image format was not specified for '/dev/sdb' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
^Z
[1]+ Stopped QEMU_AUDIO_DRV="pa" QEMU_PA_SERVER="/run/user/1000/pulse/native" qemu-system-x86_64 -m 3096M -hda /dev/sdb -cpu host -smp cores=3,threads=1,sockets=1 --enable-kvm
[root@aburk aburk]# bg
[1]+ QEMU_AUDIO_DRV="pa" …Run Code Online (Sandbox Code Playgroud)