[unix]basic

Tue Apr 22

typescript

Author:Noritaka

Astro
echo $SHELL // show using SHELL
lsblk       // show block device
tar cvf /media/hasenori/Trancend/backup.tar . //cp current directory files to usb
ls /media/hasenori/Trancend
id // show user's information
id | sed -e 's/uid=//' -e 's/(.*//' //show user's id number
if [ "USERID" -ne 0 ]; then echo "user is not root"; else echo "user is root"; files
sed -i 's/apple/orange/g' sample //edit sample file change apple to orange

//utar : tape archive

unix