Skip to content

Instantly share code, notes, and snippets.

@kemadz
Last active December 15, 2015 13:39
Show Gist options
  • Save kemadz/5269167 to your computer and use it in GitHub Desktop.
Save kemadz/5269167 to your computer and use it in GitHub Desktop.

RHEL Express

Introduction

  • RHEL(Red Hat Enterprise Linux)
    • Most popular Enterprise Linux distribution.
    • The de facto standard.
    • It's open source.
    • But software updates are available only through a paid subscription service.
  • CentOS(Community ENTerprise Operating System) RECOMMENDED
    • Building from the source of RHEL.
    • 100% binary compatibility with RHEL.
    • Free to receive software updates.

Basic

TUI(Text User Interface)

  • Terminal
  • SSH(Secure SHell), a protocol and also an client/server applications.
  • OpenSSH, client and server suite.
  • Xshell and Xftp, client suite for windows.

Filesystem

Filesystem Hierarchy Standard(LSB - FHS)

/bin    存放最常用的程序 coreutils
/boot   存放grub,内核等启动相关文件
/dev    设备文件目录
/etc    配置文件目录
/home   用户目录
/lib    库文件及内核驱动模块
/var    存放经常变动文件的目录
/proc   虚拟文件目录

Basis

  • pwd, display the current diretory.
  • ls, list files and diretories under the the current diretory.
  • cd, change to the specified diretory.

Configuration

Locale

  • LANG, /etc/sysconfig/i18n
  • Timezone, /etc/localtime
  • Clock, /etc/sysconfig/clock

Hostname

  • /etc/sysconfig/network
  • /etc/hosts

Network

  • Adapter, /etc/sysconfig/network-scripts/ifcfg-ethX
  • Route, /etc/sysconfig/network-scripts/route-ethX
  • Gateway, /etc/sysconfig/network
  • DNS, /etc/resolv.conf

Service

  • service daemon_name [start|staus|stop|restart]
  • chkconfig --list
  • chkconfig daemon_name [on|off]

Cron

  • crontab -l, list scheduled tasks.
  • crontab -e, edit scheduled tasks.
  • /etc/crontab
  • /etc/rc.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment