由於語法渲染問題而影響閱讀體驗, 請移步博客閱讀~
本文GitPage地址

To Start With Linux

1 Add a user

  1. useradd ken # add a user 'ken'
  2. passwd ken # add a password for urser 'ken'

2 Add users to sudo group

  1. vim /etc/sudoers # use root acount or run with sudo

Find the line “root ALL=(ALL) ALL” and add a line:

  1. ken ALL=(ALL) ALL

save and quite

3 Adding Script to boot list

  1. sudo vim /etc/rc.local
  1. ##!/bin/bash
  2. ## rc.local config file created by use
  3. ##The script you want to run while booting
  4. exit 0
sudo chmod +x /etc/rc.local

Something Else

System infor

# print distro
head -n 1 /etc/issue

# Name of the computer
hostname

Hardware infor

# CPU infor
cat /proc/cpuinfo

# Ram infor
grep MemTotal /proc/meminfo
# Ram infor
free -h

Java

adopt open jdk

Control your sound

alsamixer

To Start With Linux - 图1

Mute and unmute sounds

Source: Eric Carvalho 2011

amixer set Master mute   
amixer set Master unmute

Enjoy~

本文由Python腳本GitHub/語雀自動更新

由於語法渲染問題而影響閱讀體驗, 請移步博客閱讀~
本文GitPage地址

GitHub: Karobben
Blog:Karobben
BiliBili:史上最不正經的生物狗