Command Prompt에서 쓸만한 기능들



1) 파일 암호화(특정한 폴더에 있는 모든 파일 암호화)
cipher /E
2) 글자 색 변경하기
color 02
help color
3) 프롬프트 변경하기
prompt Shalom$G
help prompt
(##이렇게 하면 프롬프트의 현재 위치를 알 수 없다)
prompt $P (##처음 상태로 돌아감)

4) 명령 프롬프트의 윈도우 제목 변경하기
title God Bless You!
help title
5) ASCII Text에 Star Wars 표현하기
telnet towel.blinkenlights.nl
6) Wifi Hotspot
netsh wlan set hostednetwork mode=allow ssid=iPhone key=0103***9**1
netsh wlan start hostednetwork
netsh wlan stop hostednetwork
7) 폴더 숨기기
attrib +h +s +r foldername
attrib -h -s -r foldername (##폴더 이름 다시 나타나게 하기)
8) 명령의 결과를 클립보드로 복사하기
ipconfig | clip
9) 설치된 프로그램 목록 확인하기
wmic product get name
wmic product where “name like iTunes” call uninstall /nointeractive (##설치된 프로그램 삭제하기)
10) 터미널에서 열기
탐색기에서 원하는 위치로 이동하여 경로에 cmd를 입력하고 Enter를 하면 된다
11) 그 외 유용한 단축키
tab
방향키
F7

TLDR(Too Long; Didn’t Read) 명령어 사용하기



명령어에 대한 man page를 보기가 어려워 간단하게 명령어 사용법 보는 방법(tldr) 알아보기

참고자료1: https://www.tecmint.com/install-nodejs-npm-in-centos-ubuntu/
참고자료2: https://bit.ly/3PNGzHz

1) Installing NodeJS 14.x repository in RHEL, CentOS and Fedora
curl -sL https://rpm.nodesource.com/setup_14.x | bash –

2) Installing Nodejs and NPM
yum install nodejs -y

3) Installing development tools such as gcc-c++ and make
yum -y install gcc-c++ make

4) Testing Latest Nodejs and NPM
node –version
npm –version

5) Installing TLDR Pages
npm install -g tldr

6) Viewing man pages of any command using TLDR(Too Long; Didn’t Read)
tldr tar
tldr ls

7) To list all commands
tldr -l

8) To list all supported commands in the cache
tldr -a

9) To update or clear the local cache by running
tldr -u #update local cache
tldr -c #clear local cache

10) To search pages using keywords
tldr -s “list of all files, sorted by modification date”

11) To change the color theme
tldr -t ocean

12) To show a random command
tldr -r

13) To see a complete list of supported options
tldr -h