[root@localhost ~]# mkdir -p /tmp/test
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
Lucky Boy
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
Lucky Boy
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
[root@localhost ~]# ls /tmp/test
ls: cannot access '/tmp/test': No such file or directory
Windows环境下如何打开cmd进入到指定目录?
在指定的目录地址栏中输入cmd敲回车即可。

来自:https://blog.csdn.net/qq_27052367/article/details/125486533
任务管理器无法关闭,如果强行删除testinputhost.exe会导致windows搜索重复出现并关闭
是英伟达的一种显卡服务,这个没有任何问题,是显卡方的服务进程而已
Rlater-: 开始菜单的进程,禁用的话可能会导致开始菜单打不开
====================================================
显卡空闲有两个程序运行,一个startmenuexperiencehost.exe,一个是windowsinternal.composableshell.experiences.textinput.inputapp.exe,这两个东西怎么关
首先打开cmd
输入指令
taskkill /f /t /im startmenuexperiencehost. exe
就结束了,
如果他重新启动,那就多输几次,反正他会关掉的
来自:https://copyfuture.com/blogs-details/20211130230827803j
控制面板–管理工具 — 服务 — 手动(或者禁止,我是手动了,怕以后有需要,如果手动不能解决只能选择禁用)
Connected User Experiences and Telemetry(该死的微软还把这个服务改了名字!!,害我找了半天)
Diagnostic Policy Service
Diagnostic Service Host

停止任务计划

控制面板 — 管理工具 — 任务计划 — 任务计划程序库 — Microsoft — Windows — Application Experience — Microsoft Compatibility Appraiser 右键禁止

来自:https://blog.csdn.net/toooooop8/article/details/109351526
落实:关闭,后台关闭,启动关闭:
一、关闭。
二、后台关闭:
1、打开开始菜单的“设置”,点击“隐私”;

win10怎么关闭电脑后台运行程序_win10系统关闭后台应用的方法
2、在左侧找到并点击“后台应用”;

win10怎么关闭电脑后台运行程序_win10系统关闭后台应用的方法
3、在“后台应用”的界面可以看到正在运行的程序都处于开启的状态;

win10怎么关闭电脑后台运行程序_win10系统关闭后台应用的方法
4、如果我们希望将所有后台应用都关闭,那么我们只需要将“允许应用后台运行”下方的开关更改为关闭状态即可。

三、启动关闭:
win10设置->应用->启动。



关闭电脑后台运行程序: https://www.win7zhijia.cn/win10jc/win10_26454.html
启动关闭: https://blog.csdn.net/wxpool/article/details/120259622
卸载原因:照片进程一直在,浪费虚拟机资源。其实是可以关掉后台运行的,参考[实践OK]win10怎么关闭电脑后台运行程序
https://jackxiang.com/post/11653/

Type Power Shell in the Search bar, right-click on Windows PowerShell and click on Run as administrator.

Type the following commands, press Enter key after each command, in the given order.

1. Get-AppxPackage

(This will view all the apps installed in your account.)

2. Get-AppxPackage -AllUsers

(This will view all Windows apps installed in the computer.)

3. Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage

(This will remove/uninstall the Photo app.)

Restart the system and check.

来自:https://answers.microsoft.com/en-us/windows/forum/all/how-to-disableuninstall-the-photo-app-in-windows/9328ef95-2993-4be8-882a-442b96950f2b

如何安装(重装)win10图片查看器: https://jingyan.baidu.com/article/2f9b480dd96b5a41cb6cc2e4.html

安装:http://www.360doc.com/content/22/0411/12/34398161_1025875061.shtml


换用:Honeyview 是一款快速的图片查看器
下载地址:https://www.bandisoft.com/honeyview/
Here is what you need to do:

Type Task Manager in the search area of the taskbar and hit Enter.
Inside the Task Manager window, navigate to the Processes tab and locate searchapp.exe/Search.
Right-click on it and select End task from the context menu.

Command Prompt is a utility that can be accessed from any Windows PC and allows you to use text commands to manage the computer. With it, you can automate tasks, troubleshoot problems, and perform all kinds of other tasks.

Here is how you can use Command Prompt to disable the process on Windows:

Type cmd in the search area of the taskbar and click on Run as administrator to launch elevated Command Prompt.
In the Command Prompt window, type the command mentioned below and hit Enter to execute it. This will launch System Apps on your system.
cd %windir%\SystemApps
Next, execute the following command to delete the process.
taskkill /f /im SearchApp.exe
Once done, execute this last command.
move Microsoft.Windows.Search_cw5n1h2txyewy Microsoft.Windows.Search_cw5n1h2txyewy.old


From:https://appuals.com/what-is-searchapp-exe/
Chrome右侧三个点进入:单击位于屏幕右上角的三个点,然后选择“  设置” 下拉后进入:设置-》系统
关闭 Google Chrome 后继续运行后台应用 [关闭]               《========发现:MacBook上的Chrome没有此设置。


首先,你需要打开 Chrome 浏览器。
单击位于屏幕右上角的三个点,然后选择“  设置”  菜单。
接下来,单击高级并选择  系统。
然后,选择  Google Chrome 关闭时继续运行后台应用程序  选项以启用。
来自:http://www.readke.com/c/565813.html
https://qa.1r1g.com/sf/ask/1503369101/
Mac系统 解决 python: No such file or directory
ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python      
python  #无法解决
zsh: no such file or directory: /usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9 #在PATH里面有上面的软链接,但还是指向这个最新的py地址
/usr/local/bin/runlike       #得把它加到环境变量中去没用,还是指向上面最新的。
which python
python: aliased to /usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9  #aliased指向了最新的
果然如此,vim ~/.zshrc:
alias python="/usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9"
alias pip="/usr/local/Cellar/python@3.9/3.9.13_3/bin/pip3.9"
alias pip3="/usr/local/Cellar/python@3.8/3.8.9/bin/pip3.8"
alias pip3.8="/usr/local/Cellar/python@3.8/3.8.9/bin/pip3.8"
alias pip3.9="/usr/local/Cellar/python@3.9/3.9.13_3/bin/pip3.9"

修改为就好了:
alias python="/usr/local/Cellar/python@3.9/3.9.14/bin/python3.9"
alias pip="/usr/local/Cellar/python@3.9/3.9.14/bin/pip3.9"
alias pip3="/usr/local/Cellar/python@3.9/3.9.14/bin/pip3.9"
alias pip3.8="/usr/local/Cellar/python@3.9/3.9.14/bin/pip3.9"
alias pip3.9="/usr/local/Cellar/python@3.9/3.9.14/bin/pip3.9"

ls /usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9
ls: /usr/local/Cellar/python@3.9/3.9.13_3/bin/python3.9: No such file or directory #因升级更新Mac新版本系统后没有了。

位置:/usr/bin   sudo cp -rf python3 python
cp: python: Operation not permitted

ln -s  /usr/bin/python3 /usr/bin/python
ln: /usr/bin/python: Operation not permitted





原因:系统保护机制
Disabling SIP
It's also possible to disable System Integrity Protection, but it's generally best to leave it on and do customization in more appropriate locations.
https://stackoverflow.com/questions/36730549/cannot-create-a-symlink-inside-of-usr-bin-even-as-sudo

Restart the system -> long press cmd + R.  select a terminal from utilities menu type the following command csrutil disable close terminal and restart system.

来自:https://stackoverflow.com/questions/36730549/cannot-create-a-symlink-inside-of-usr-bin-even-as-sudo

MAC /usr/bin/目录下 Operation not permitted的解决
mac系统下的Rootless机制,让我们在root权限下也不能随心所欲的读写所有路径了,特殊情况下我们需要关闭Rootless时,可尝试如下操作:
1. 重启按住 Command+R,进入恢复模式,打开Terminal。
2. 键入命令 csrutil disable
3. reboot
Rootless机制是对抗恶意程序的最后防线,除非特殊需要时我们才将其关闭,否则保持开启状态
csrutil enable

原文链接:https://blog.csdn.net/king457757706/article/details/70671250
现象:zsh: killed     env ZSH=$ZSH ZSH_CACHE_DIR=$ZSH_CACHE_DIR  zsh -f
解决:更改.zshrc,把DISABLE_AUTO_UPDATE = false这句话取消注释便可。
实践:cat ~/.zshrc|grep DISABLE_AUTO_UPDATE           #zsh禁用自动更新
DISABLE_AUTO_UPDATE="true"
再打开正常了,不再显示:zsh: killed     env ZSH=$ZSH ZSH_CACHE_DIR=$ZSH_CACHE_DIR  zsh -f

来自:http://www.noobyard.com/article/p-cpnkkkkg-eo.html
问题描述
PackageKit,包管理服务,通过 DBus 接口,执行某些简单的包管理任务,比如刷新缓存,安装、更新、移除软件等等。
但是该服务经常占用大量 CPU 资源,非常多

操作系统:CentOS8
软件版本:cockpit-packagekit-276-1.el8.noarch


解决办法
目前(09/02/2019),并没有人找到 CPU 占用高的原因。所以,对于这个问题也没有什么解决方案。卸载的有,禁用的有,这那的都有,都是些 workaround 办法。

第一步、禁用服务
由于依赖的原因,还不能直接删除掉。因此只能禁用服务:

systemctl stop packagekit.service
systemctl disable packagekit.service
systemctl mask packagekit.service # 如果不mask的话,它还会启动。


实践操作如下:
systemctl stop packagekit.service
systemctl disable packagekit.service
systemctl mask packagekit.service
Created symlink /etc/systemd/system/packagekit.service → /dev/null.


来自:https://www.cnblogs.com/k4nz/p/14266675.html
如何设置端口映射
先在Linux虚拟机的8080端口开启一个网页服务
打开Linux虚拟机的 控制中心
获取物理机ip地址:
MacBook: 172.20.163.50
CentOS: 10.211.55.5  #转发至填写上虚拟机的IP。因为上面的Radio写的是我的两台虚拟机的名字,所以应该写虚拟机的IP地址。http://172.20.163.50/ 就是访问虚拟机的IP和端口。如果访问不到得关掉macbook网络里面的防火墙。
**获得物理机ip地址172.20.163.50(下一步会用到)
设置端口映射
按照以上操作,完成8080端口映射后,在办公网络(局域网)中的任何机器,都能通过访问物理机的8080端口,获得Linux虚拟机提供的服务(程序需要允许来自局域网的连接)


telnet 172.20.163.50 80  #成功
Trying 172.20.163.50...
Connected to bogon.
Escape character is '^]'.

https://blog.csdn.net/weixin_39949894/article/details/111670236
CentOS 8怎么取消锁屏,CentOS 8自动锁屏怎么关闭?自己在使用虚拟机运行centos 8时,
Centos 8默认几分钟不动就锁屏,实在很讨厌,所以在设置中将其去掉。图形界面操作解决方法:
  第一步、点击左上角活动,在收藏夹里面找到并点击“显示应用程序”

CentOS 8怎么取消锁屏,CentOS 8自动锁屏怎么关闭?桌面收藏夹

  第二步、在应用程序窗口,找到并点击“设置”

CentOS 8怎么取消锁屏,CentOS 8自动锁屏怎么关闭?应用程序

  第三步、在设置窗口找到并点击“Privacy(隐私)”,在右侧窗口点击“锁屏”

CentOS 8怎么取消锁屏?设置项目窗口

  第四步、在锁屏窗口,将自动锁屏设置成关闭即可


来自:https://www.beihaiting.com/m/view.php?aid=11524
背景:Centos8作为虚拟机界面方式安装,里面做点前端VUE啥的开发学习时方便个性文件用。
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo vim /etc/yum.repos.d/vscode.repo

sudo dnf install code
使用 Visual Studio Code
现在VS Code 已经安装在你的 CentOS 系统上,你可以开始启动它,在命令行输入 code,或者点击  VS Code 图标(应用->程序->Visual Studio Code)

实践来自:https://cloud.tencent.com/developer/article/1626644
https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions


打开 vscode 后一直黑屏,只有上方的菜单栏。github 上说这是 gpu 渲染问题,尝试了在命令行输入
code --disable-gpu. #成功

打开的 vscode 依旧是黑屏。

我的OK了,但是有的人说是还是不行,看到一种解决办法(用的是TW节点,所以搜索显示的是繁体233)
在这里插入图片描述
尝试了一下
cd ~/.config
rm -rf Code/
果然有用!

来自:https://blog.csdn.net/weixin_43742643/article/details/126003200
一、苹果电脑进阶8:快速查看“显示简介”
要了解一个文件或文件夹的细节,比如建立日期、修改日期等等,要两指轻点以打开“显示简介”,这是常规操作。

Mac提供了快捷键组合供追求高效率者使用:

command-i

大家用起来哈,又可节省2秒了。

用完“显示简介”,点击左上角红色x,关闭“显示简介”, 这是常规操作。高效操作还是快捷键command-i,其实它就是“显示简介”的on/off开关。


来自:
https://www.xiaohongshu.com/discovery/item/6296b24e000000002103bb64


二、苹果电脑进阶9:“访达”也能显示文件路径:
Windows系统中,“我的电脑”或“资源管理器”会显示文件/文件夹路径,Mac在“访达”中却不显示,确实不便,也让人费解。

连“三指拖移”都是默认不开启,Mac有这类奇怪逻辑就一点也不奇怪了。是的,这是苹果最不可理喻之处,老子就是要到处嚷嚷

其实Mac隐藏着一个文件/文件夹路径的on/off开关:option-command-p

按一下这个快捷键组合,“访达”窗口下部就会显示路径(见图2红圈处),再按一下就关闭。不过建议别关,然后忘掉这组快捷键。

还有另一种方法,双指单击“访达”窗口上部工具栏空白处,选择“自定工具栏”,可以把其中的“路径”项目拖入工具栏,工具栏就多了个“路径”栏(见图3),点击就能看到路径,但显示方式不符合我们的习惯,效率也不够高,不推荐。

来自:https://www.xiaohongshu.com/discovery/item/6298937b0000000021037ac6


三、锁屏,触发角——Mac的神器?
触发角,就是把光标移到显示屏的左上角、右上角、左下角和右下角,Mac就会触发你你事先设置好的功能(可理解为一个开关),比如熄屏、打开启动台……

设置也很简单,小苹果→系统设置偏好→桌面与屏幕保护程序→触发角(旧版可能要先点调度中心),就可设置显示屏的四个边角激发的选项了。附图是设置右上角的情景。

有人夸触发角为Mac神器,我倒不这么认为,还是看个人使用习惯吧,触发角能实现的功能,触控板的手势基本都能实现,一个手势怎么也比把光标移到显示屏四角更方便、高效。而且左上角和右上角容易误触。


来自:https://www.xiaohongshu.com/discovery/item/62aa02dc000000000e00e2a7


四、苹果电脑进阶12:看caj文件的大招
网上下载的论文,有的是caj格式,用什么app看?App store 里下载“caj云阅读”即可。

还有一个绝招:把文件扩展名caj直接改为pdf,文件就变成pdf格式了。

绝招通常都行,不行就用“caj云阅读”吧。为防止文件损坏,先复制备份原文件哈。

看来caj底层就是图像,也不知道为啥要弄出这么个格式来,统一用pdf不挺好吗?

来自:https://www.xiaohongshu.com/discovery/item/63257f6f000000000801d8dc
If you installed Wireshark using the package from wireshark.org, close this dialog and click on the "installing ChmodBPF" link in "You can fix this by installing ChmodBPF." on the main screen, and then complete the installation procedure.

原文链接:https://blog.csdn.net/qq_38376348/article/details/121419684

ls /dev/bpf*
/dev/bpf0  /dev/bpf10 /dev/bpf12 /dev/bpf14 /dev/bpf16 /dev/bpf2  /dev/bpf4  /dev/bpf6  /dev/bpf8
/dev/bpf1  /dev/bpf11 /dev/bpf13 /dev/bpf15 /dev/bpf17 /dev/bpf3  /dev/bpf5  /dev/bpf7  /dev/bpf9

没有给bpf权限

解决办法
chmod 777 /dev/bpf*
重新打开软件后:

可以看到en0网卡流量有变化了
==============================================================

The capture session could not be initiated on capture device "en0" (You don't have permission to capture on that device).

Please check to make sure you have sufficient permissions.

If you installed Wireshark using the package from wireshark.org, close this dialog and click on the "installing ChmodBPF" link in "You can fix this by installing ChmodBPF." on the main screen, and then complete the installation procedure.

来自:https://blog.csdn.net/qq_38376348/article/details/121419684
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo



现象:
CentOS Linux 8 - BaseOS                                                                                                                                                    73  B/s |  38  B     00:00    
错误:为 repo 'baseos' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist

原因:
CentOS 8 于2021年底停止维护,CentOS 7 将于 2024 年 6 月底停止维护。
如果业务过渡期仍需要使用 CentOS 8 中的一些安装包,建议切换至 CentOS-Vault 源。

解决办法:



来自:https://blog.csdn.net/Shockang/article/details/126335260


出现新的问题:
Module yaml error: Unexpected key in data: static_context [line 9 col 3]
Module yaml error: Unexpected key in data: static_context [line 9 col 3]
Module yaml error: Unexpected key in data: static_context [line 9 col 3]

解决办法:
然后尝试 yum install git
引发了新的错误
Module yaml error: Unexpected key in data: static_context [line 9 col 3]
Module yaml error: Unexpected key in data: static_context [line 9 col 3]

解决方法:
修改 BaseOS.repo 文件的 baseurl 参数

[baseos]
baseurl=htps://vault.centos.org/centos/$releasever/BaseOS/$basearch/os/

修改 AppStream.repo 文件的 baseurl 参数

[appstream]
baseurl=htps://vault.centos.org/centos/$releasever/AppStream/$basearch/os/


来自:https://blog.csdn.net/tfstone/article/details/124263456
分页: 3/339 第一页 上页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 下页 最后页 [ 显示模式: 摘要 | 列表 ]