To Start With Linux

To Start With Linux

To Start With Linux

1 Add a user

useradd ken # add a user 'ken'
passwd ken # add a password for urser 'ken'

2 Add users to sudo group

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

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

ken  ALL=(ALL)    ALL

save and quite

3 Adding Script to boot list

sudo vim /etc/rc.local

##!/bin/bash
## rc.local config file created by use

##The script you want to run while booting

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

alsamixer

Mute and unmute sounds

Source: Eric Carvalho 2011

amixer set Master mute   
amixer set Master unmute

Paste

ДМИТРИЙ МАЛИКОВ, 2013

paste <(echo "$VAR1") <(echo "$VAR2") --delimiters ''
Author

Karobben

Posted on

2020-06-26

Updated on

2024-01-11

Licensed under

Comments