Tag Archives: linux

Linux中查看各文件夹大小命令 estimate file space usage

du -h –max-depth=1 NAME du – estimate file space usage SYNOPSIS du … … EXAMPLES DESCRIPTION Summarize disk usage of each FILE, recursively for directories. Mandatory arguments to long options are mandatory for short options... Read More | Share it now!

Set up CentOS for Hortonworks and Cloudera

https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.0/bk_ambari-installation/content/prepare_the_environment.html   #Network vi /etc/sysconfig/network-scripts/ifcfg-eth0 -> ONBOOT=yes /etc/sysconfig/network-scripts/ifup... Read More | Share it now!

Hostname

The hostname command returns results from DNS and /etc/hosts. hostname is equivilant to uname -n and is the actual “hostname” or “nodename” of the box. All the other hostname arguments use this nodename to look up info. So... Read More | Share it now!

CentOS Linux下VNC Server远程桌面配置详解

PS:偶以前基本不用Linux的远程图形桌面,前几天有开发的同事配置CentOS的vnc有问题,找我解决,就顺便记录总结一下,这个总结是比较完整的。下面的配置在CentOS5.x和6.x、SUSE企业版亲测验证,其他发行版按理也通用: 一、安装相应桌面环境与vnc服务端和客户端: #... Read More | Share it now!

Disk Partitioning With fdisk Linux分区

Reference: http://www.liquidweb.com/kb/disk-partitioning-with-fdisk-2/ 1. 显示 disk 信息 命令: fdisk -l 或: parted -l (以G为单位进行显示) 或: df -h 2. 选择目标disk 命令: fdisk /dev/sda 名称可能因disk而异 3.... Read More | Share it now!

linux的hostname修改详解

Linux操作系统的hostname是一个kernel变量,可以通过hostname命令来查看本机的hostname。也可以直接cat /proc/sys/kernel/hostname查看。 #hostname #cat... Read More | Share it now!

centos6.5 transparent huge pages怎么关闭

vi /etc/grub.conf kernel项增加 transparent_hugepage=never 例如: title Red Hat Enterprise Linux (2.6.32-431.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root ... Read More | Share it now!

Error: no such table: filelist

https://ask.fedoraproject.org/en/question/10639/yum-upgrade-leads-to-error-no-such-table-filelist/   yum clean all ... Read More | Share it now!

linux yum命令详解

linux yum命令详解 yum(全称为 Yellow dog Updater,... Read More | Share it now!