摘要:[asm/c]:SYSCALL系统调用的编号(x86_64) 一、基本说明 1. 操作系统信息(ubuntu25.10): Linux ubuntu 6.17.0-5-generic 2. 系统调用编号文件的位置: /usr/include/x86_64-linux-gnu/asm 3. 系统调用编
阅读全文
随笔分类 - os
操作系统内容
摘要:【linux】:redhat_debian移除旧内核的脚本 一、说明 1. 说明1: redhat,代表采用RPM软件包、带有DNF包管理器的操作系统;redhat类型操作系统,使用“redhat移除旧内核脚本”; 2. 说明2: debian,代表采用DEB软件包、带有APT包管理器的操作系统;d
阅读全文
摘要:[windows]: windows11之【激活】和【推迟系统更新】 一、说明 1. 注意事项:关注使用的环境(CMD/POWERSHELL)以及环境的权限。 二、激活 1. https://massgrave.dev/ 2. 激活方法: 1、环境:powershell(管理员权限) 2、输入激活命
阅读全文
摘要:[ssh]:SecureCRT的配置 一、有用配置 1. Connection -> SSH2 -> SFTP Session -- SFTP Session: 本地上传文件的默认位置,远程下载文件存储的默认位置。 2. Terminal -> Emulation 3. Terminal -> Ap
阅读全文
摘要:[radhat_debian]:google-chrome 安装 一、基本说明 1. google-chrome for linux: https://www.google.cn/chrome/other-platforms/ 2. google-chrome: https://www.google
阅读全文
摘要:[linux]:sudo配置--取消输入密码 一、说明 1. 用户使用sudo命令时,需要输入密码;经常输入密码,太麻烦。因此我想取消我的用户使用sudo时输入密码。 2. 原理:配置sudoers文件【/etc/sudoers】 3. 重点说明: # [config_by_wit:20250911
阅读全文
摘要:[linux]: 设置【PS1】 一、环境 1. 操作系统: Linux fedora 6.16.4-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 28 19:47:10 UTC 2025 x86_64 GNU/Linux 二、设置PS1 1. 配置【
阅读全文
摘要:[rockylinux]:rockylinux10的基本配置 一、 PS1 配置 1. 配置位置( /etc/profile.d/bash-color-prompt.sh ) [root@rocky:profile.d]# pwd /etc/profile.d [root@rocky:profile
阅读全文
摘要:[windows]:SSH——清理SSH的缓存文件 一、说明 1. 在windows操作系统中,在CLI(command line)中,每次进行ssh连接都会将连接信息保留在某个文件中。这些文件被称为,ssh缓存文件。 SSH缓存文件的保存位置: C:\Users\Administrator\.ss
阅读全文
摘要:[ubuntu2504] ubuntu2504 移除旧内核(脚本) 一、基本问题 1. 操作系统: ubuntu2504: Linux ubuntu 6.14.0-22-generic 2. 注意事项: ROOT_PASSWORD,要改成你的账户密码。 二、脚本内容 [wit@ubuntu:tool
阅读全文
摘要:[ubuntu2504] MongoDB Install(tsinghua-repo) 一、mongodb 安装 1、 mongodb安装准备: https://mirrors.tuna.tsinghua.edu.cn/help/mongodb/ 2、 mongodb安装选择(tsinghua):
阅读全文
摘要:[ubuntu2504] MariaDB--解除远程访问限制 一、基础信息 1、 ubuntu版本信息: ubuntu25.04 2、 mariadb版本: Server version: 11.4.7-MariaDB-0ubuntu0.25.04.1 Ubuntu 25.04 二、配置文件更改 1
阅读全文
摘要:[ubuntu2504] python venv (flask+sqlite/mariadb+sqlalchemy+gunicorn+gevent) 一、创建虚拟环境的脚本(python) [wit@ubuntu:venv]$ cat create_venv #!/usr/bin/bash func
阅读全文
摘要:[ubuntu2504] MongoDB Install 一、安装过程 【问题】: ubuntu2504--安装mongodb(chat.baidu.com: ubuntu:mongodb安装方法) 【回答】 以下是Ubuntu系统安装MongoDB Community Edition的综合指南,支
阅读全文
摘要:[ubuntu] pip3-pep668-externally-managed-environment 一、解决方法 1、 修改文件:pip.conf([wit@ubuntu:python]$ cat ~/.pip/pip.conf ) -- 添加: break-system-packages =
阅读全文
摘要:【python3】 【regular expression】笔记 一、笔记内容 【问题】: python3 - 【regular expression】 笔记 【回答】 1、 【re.MULTILINE】 模式: -- [^$]从匹配字符串,扩展到匹配‘行’的首位。 -- 即[^$]从匹配“字符串”
阅读全文
摘要:[fedora42]:PS1配置——调整系统自带的脚本 一、 基础说明 1、 [fedora42]: PS1的定义在这个文件中【 /etc/profile.d/bash-color-prompt.sh 】 2、 修改目的:将“显示当前工作目录的绝对路径”改为“显示当前工作目录的相对路径 -- 修改方
阅读全文
摘要:[linux] PS1 Set in Bash 1. Setting PS1 in Bash ( /etc/bashrc) # /etc/bashrc # date: 20250416 if [[ $USER = "root" ]] then PS1='[\[\033[1;31m\]\u@\h:\W
阅读全文
摘要:【fedora】 PS1 Setting for Bash 一、【PS1】设置( PS1='[\[\033[1;31m\]\u@\h:\W\[\033[00m\]]$ ' ) # position: /etc/bashrc # date: 20250416 if [[ $USER = "root"
阅读全文
摘要:[ubuntu]:ubuntu2402——网络配置 一、ubuntu2402之网络配置(重点内容:网络配置的格式) wit@ubuntu:~/ubuntu2402/lidawei/tmp$ sudo cat /etc/netplan/90-NM-14f59568-5076-387a-aef6-10a
阅读全文

浙公网安备 33010602011771号