Command Basics

aylee·2022년 11월 4일
0

Linux

목록 보기
4/11

Understanding The Prompt

터미널에 접속했을 때 항상 뜨는 첫 라인 : Prompt

username@hostname:~$

Prompt가 뜬다는 것 : 입력을 받을 준비가 되어있다.

command 1: clear

터미널 창을 정리한다.


엔터를 누르면 아래와 같이 변한다.

command 2: date

date는 현재 시각과 날짜를 알려준다.

🚨 command는 case-sensitive 하다

command 3: ncal

ncal : new cal/ new calender
cf) cal 이라는 명령어도 있는데 ncal과 같이 달력을 리턴한다.

먼저 $sudo apt install ncal 을 입력해서 다운을 받는다. 그 후 ncal이라고 입력하면 달력이 나온다.

cal은 별도의 다운이 필요하지 않은 것 같다.


Command Structure

command -options arguments

대부분의 commands는 다양한 옵션을 지원한다.

command : 행동강령
-options : 행동강령에 특별한 옵션을 더한다.
arguments : command에게 넘길 내용 (필요할 경우에, = parameters)

command 3: echo

argument로 들어오는 내용을 똑같이 복사해서 리턴

profile
미래를 구체화 하는 중

0개의 댓글