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
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-03-29
About IPC
IPC (Inter-Porcess Communication) 进程间通信 多个进程需要协作的时候通信必不可少 IPC 的五种基本方法 Pipes / FIFOs 管道 Message Queues 消息队列 Shared Memory 共享内存 POSIX Semaphores POSIX 信号量 Sockets 套接字 Pipes 的特性 兼容性问题:最早的时候都是半双工,有的系统却提供了全双工的管道 适用范围的问题:只能在具有相同的祖先进程的进程间使用,多数情况是在父子进程之间使用 Pipes 的使用 使用pipe需要了解两个函数 123456789// 需要包含头文件 <unistd.h>int pipe(int fd[2]); // 创建两个文件描述符,fd[0] 用于读取,fd[1]用于写入// 需要包含头文件 <unistd.h> 和 <sys/types.h>pid_t fork(void); // 通过复制父进程创建子进程// 标准头文件 <stdio.h>// The popen() fu...
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
2020-01-24
About Thread
多线程编程是实用程序必然要用到的工具 没有多线程、多进程编程就不是现代编程人员做的事情多线程的优缺点**优点** * * **缺点** * * pthread_cond_wait pthread_cond_signal 多线程的同步方法多进程的同步方法原子操作binder 通信RPC 调用12345678910111213141516171819202122char * mystrstr(const char *str,const char *substr){ if(str==NULL||substr==NULL) { printf("error NULL\n"); return NULL; } if(strlen(str)<strlen(substr)) { return NULL; } char *cp=str; char *subcp=substr; while(*cp) { while(*cp && *subcp && !(*cp-*...
2020-01-20
About Linux
Linux 的作用范围 Linux 本来仅仅是指一种类Unix系统(和unix比较像的操作系统称为类Unix系统)的kernel, 不包括 shell等其它实用工具.随着linux的日益壮大或者人们的口口相传,原本应该是GNU/Linux 指代整个操作系统,后来渐渐Linux 也指代整个操作系统. 但是在具体的上下文环境中还是可以分清楚是指代内核还是整个操作系统 Linux 的常见发行版本 首先解释什么是发行版本:发行版本是开源社区或者公司,甚至是个人把Linuxkernel拿过来,整合其它的使用工具,以及软件管理工具装配的一个便于终端用户使用的操作系统根据软件包管理工具的不同大概分为两个系列 :Debian 系列(使用 dpkg 作为底层工具)和 Redhat 系列(使用 rpm 作为底层工具),还有一些特立独行的发行版本使用的是其他的软件包管理工具(比如说 arch,和 gentoo) dpkg 系 Debian Ubuntu Linuxmint Deepin rpm 系 Redhat CentOS Fedora SUSE OpenSUSE pacma...
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-NON-O...
Announcement
This is my Blog