The Beautiful Future

우분투 명령어 본문

스킬

우분투 명령어

Small Octopus 2017. 8. 9. 11:17

## 파일리스트 만들기

find /home/file_directory > file_list.txt


## 폴더안에 파일개수 세기

ls folder_location | wc -l 


## tar options

-c : 파일을 tar로 묶음

-p : 파일 권한을 저장

-v : 묶거나 파일을 풀때 과정을 출력

-f : 파일이름을 지정

-x : 압축풀기

-z : gzip으로 압축하거나 해제함

-C : 경로를 지정


## tar를 이용한 자료 복사

$ tar cvf - . | (cd /new ; tar xvf -) 


## tar 압축 풀기

$ tar -xvf  xxx.tar -C /destination

$tar -xvzf xxx.tar.gz -C /destination

$tar -xzvf xxx.tgz -C /destination


## tar 압축 하기

tar -cvf xxx.tar /folder_or_file

tar -zcvf xxx.tar.gz /folder_or_file

tar -scvf xxx.tgz /folder_or_file


## 셔뱅( shebang )

- 아래 이어지는 코드가 어떤 언어로 되어있는지 알려주는 명령어 셔뱅

#!/usr/bin/env python


### apt-get 설치 제거

sudo apt-get remove <application_name>

sudo apt-get purge <package-name> // remove multiple pakage


## cpu정보

$sudo lscpu

'스킬' 카테고리의 다른 글

git command  (0) 2017.11.10
Install Atom editor and integration with Github  (0) 2017.11.10
caffe locally connected layer  (0) 2016.09.17
sse add mul  (0) 2016.09.04
matlab 그래프 포인트 움직이기  (0) 2016.09.01
Comments