Ubuntu 우분투 명령어 노트
uname
root@ncpmicro:~# uname -a
Linux ncpmicro 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
root@ncpmicro:~#
cat /etc/os-release
"Ubuntu 18.04" 를 얻기위해
root@ncpmicro:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
root@ncpmicro:~#
cp 파일 복사
mv 이동
rm 파일삭제
date 현재시간
mkdir 디렉토리 만들기
rmdir 디렉토리 삭제
cat 파일내용출력
ls -al 디렉토리 및 파일 리스트 보기
ls -t 파일 시간 소팅
ls -r 파일 리버스 소팅
ls -S 파일 사이즈 소팅
(응용) ls -al > filelist.txt
root@ncpmicro:~# ls -al > filelist.txt
root@ncpmicro:~# ls
filelist.txt
root@ncpmicro:~# cat filelist.txt
total 64
drwx------ 8 root root 4096 Aug 26 15:07 .
drwxr-xr-x 26 root root 4096 Aug 12 18:26 ..
-rw------- 1 root root 0 Aug 26 14:47 .bash_history
-rw-r--r-- 1 root root 3192 Aug 13 13:56 .bashrc
drwx------ 2 root root 4096 Aug 10 23:49 .cache
-rw-r--r-- 1 root root 0 Aug 26 15:07 filelist.txt
drwx------ 3 root root 4096 Oct 6 2020 .gnupg
drwxr-xr-x 3 root root 4096 Oct 6 2020 .local
drwxr-xr-x 2 root root 4096 Aug 26 06:53 .nsight
-rw-r--r-- 1 root root 148 Aug 18 2015 .profile
-rw-r--r-- 1 root root 75 Oct 6 2020 .selected_editor
drwx------ 2 root root 4096 Oct 6 2020 .ssh
drwxr-xr-x 2 root root 4096 Aug 23 17:50 .vim
-rw------- 1 root root 14969 Aug 26 15:03 .viminfo
-rw-r--r-- 1 root root 176 Aug 13 17:49 .wget-hsts
root@ncpmicro:~#
grep '찾을문자열' *
파일안에서 문자열 찾기
'start linux' 카테고리의 다른 글
[ Linux ] Ubuntu MariaDB 대량 데이터 밀어 넣기 (0) | 2021.09.01 |
---|---|
[ Linux ] Ubuntu MariaDB 데이터베이스 만들고 사용자 만들기 (0) | 2021.08.31 |
[ Linux ] vi 에디터 명령어 노트 (0) | 2021.08.30 |
[ Linux ] Ubuntu MariaDB Java Connectors 설치 (0) | 2021.08.29 |
[ Linux ] Ubuntu MariaDB 설치 (0) | 2021.08.26 |