Skip to content

Latest commit

 

History

History
138 lines (120 loc) · 1.77 KB

COMMAND.md

File metadata and controls

138 lines (120 loc) · 1.77 KB

날짜

명령어

date

출력

2024년 09월  3일 화 오후 11:04:56

현재 디렉토리 내의 파일 내역

명령어

ls

출력

 AppData/
 Apple/
'Application Data'@
 Contacts/
 Cookies@
...

화면을 깨끗이

명령어

clear

출력

패스워드 변경

명령어

passwd

출력

Changing password for user ec2-user.
Current password:

명령어 설명 보기

명령어

man date

출력

DATE(1)                                                                     User Commands                                                                    DATE(1)

NAME
       date - print or set the system date and time

SYNOPSIS
       date [OPTION]... [+FORMAT]
       date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

DESCRIPTION
       Display the current time in the given FORMAT, or set the system date.

       Mandatory arguments to long options are mandatory for short options too.

현재 작업하는 디렉터리

명령어

pwd

출력

/home/ec2-user

새 디렉토리 생성

명령어

mkdir hello

출력

$ ls
hello

이동

명령어

cd hello

출력

$ pwd
/home/ec2-user/hello

List size 확인

명령어

ls -s

출력

total 4
4 hello.txt

숨겨진 파일 보기

명령어

ls -a

출력

.  ..  hello.txt

파일 자세히 보기

명령어

ls -l

출력

total 4
-rw-r--r--. 1 root root 13 Sep  3 14:20 hello.txt

경로명

  • ~ : 홈디렉토리
  • . : 현재 디렉토리
  • .. : 부모 디렉토리