sudo echo 3 > /proc/sys/vm/drop_caches 权限不足
Created|Updated
|Post Views:
1 | # 以下命令可以解决 sudo 权限不够的问题 |
Author: wang shaodong
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Related Articles
2022-03-23
windows 添加开机启动的位置
widows 添加开机启动的方法 可以通过把可执行文件的快捷方式拖拽到 shell:startup 路径中实现开机启动 12windows + R的运行窗口输入 shell:startup# C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup ps: 注册表编辑器的名字 ,与标题无关gpedit.msc
2020-02-14
Linux commands
linux 命令列表 systemctl (Control the systemd system and service manager) systemd 系统用来替代之前的linux 中的system V 目的在于统一系统服务, 并行启动系统服务程序,加快系统启动,大部分现代linux使用此程序引导系统. 常用命令如下 12345# systemctl enable service_name# systemctl start service_name# systemctl status service_name# systemctl restart service_name# systemctl disable service_name pushd popd pushd dir_name 切换目录的同时把当前目录圧入栈,方便后续使用popd 弹出栈切换目录 popd 弹出上一次的目录栈,相当于cd - popd 可以多次使用,直到目录栈为空,cd - 多次使用只会在两个目录之间来回切换 grep 1$ grep ...
2020-02-19
about-ssh
ssh Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network ssh 也是Linux 命令之一,用于(取代telnet等不安全的协议软件)安全连接访问远程服务器. ssh 基本用法 以root用户通过端口22333登录192.168.23.4主机 1$ ssh root@192.168.23.4:2233 ssh的特殊姿势 只有你拥有台海外vps并且安装了ssh服务,可以通过ssh动态端口转发实现fq ssh [-D [bind_address:]port root@remotehost:2233 一般bind_address 是localhost netstat -nat 查看端口使用情况ssh 相关命令ssh-agent ssh-keygen
2021-08-07
Linux software commonly used
ubuntu 内核调试开发常用软件包名 记录12libncurses5-dev gcc-arm-linux-gnueabi build-essential gcc-5-arm-linux-gnueabi git libssl-dev openssl bc flex bison qemu make gdb gdb-multiarch \device-tree-compiler uml-utilities bridge-utils nfs-kernel-server 1234# openssl's liblibssl-dev# elf's liblibelf-dev 内核启动的三种方式 initrd (init ram disk) init= root
2020-02-18
Linux中的奇葩opensuse
安装完成之后的软件源切换 禁用所有软件源 1$ sudo zypper mr -da 添加阿里镜像源 1234$ sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.1/repo/oss openSUSE-Aliyun-OSS ;$ sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.1/repo/non-oss openSUSE-Aliyun-NON-OSS ;$ sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.1/oss openSUSE-Aliyun-UPDATE-OSS ;$ sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.1/non-oss openSUSE-Aliyun-UPDATE-...
2020-01-19
About Shell
shell 直译为壳 有个著名的油气公司叫做荷兰皇家壳牌(英語:Royal Dutch Shell Plc)是世界第二大石油公司,公司在英國註冊,总部位于荷兰海牙。外国人什么都叫做壳,蛋壳,地壳,都是shell 有种包裹什么东西在里面的感觉操作系统分为内核和外壳 这个壳叫做shell, shell 用来和内核交流,shell 有CUI(命令行的), GUI (图形化的).unix/linux/freebsd 操作系统上最通用的人机交互界面就是命令行,典型 windows上最常用的是 图形化界面(忘记了一个gui系统的几个基本元素mouse ,window, focus,)下面主要讨论 命令行shell 格式各样的shell 常见的bash,sh, zsh,fish (经常听说 bash 4.xx 有什么命令注入漏洞)ash :bash(Bourne-Again SHell) :比较流行的一个shell基本各大linux发行版本都默认设置bash为shellzsh :号称最后一个shell 因为字母 z是最后一个了。。fish : 灵活的交互式shell, ...
Announcement
This is my Blog