본문 바로가기
매킨토시

매킨토시 명령어와 단축키

by treeCoder 2021. 8. 25.

매킨토시 명령어와 단축키를 소개한다.

1) 먼저 단축키를 소개한다.

Command + C : 복사하기 (윈도우즈의 CTRL + C 와 비슷)
Command + V : 붙여넣기 (윈도우즈의 CTRL + V 와 비슷)
Command + Z : 실행취소 (윈도우즈의 CTRL + Z 와 비슷)
Command + A : 전체선택 (윈도우즈의 CTRL + a 와 비슷)

************************************************************************

2) 다음에는 명령어를 소개한다.

./prog1 <-- run a program

1) touch prog1.c

2) nano prog1.c
type something
ctrl x, y, enter

3) cat > prog1.c
type something
hit ctrl + D

cat help.txt <-- type contents to screen
cat porg1.c

cd
cd ..
Cd ../
cd ../..
Cd /users/s/desktop
cd Desk and tabkey ==> cd Desktop/
cd Desktop
cd Desktop/test/; ls =l
cd Downloads
cd test2

clear

exit

gcc prog1.c -o prog1

Han/Eng change —> Caps, ctrl + space

ls
ls -l

mkdir test
mkdir test2

mv test.pdf ~/Desktop/

nano help.txt <-- open and edit txt doc
nano prog1.c

open -a "Google Chrome" http://green-tree-program.tistory.com
open -a jEdit prog1.c
open -a safari http://green-tree-program.tistory.com
open Code.jpg
open test.txt

pwd - print working directory

rm file_Name

rmdir test/

screencapture -x -t jpg Code.jpg
open -a jEdit prog1.c

Touch new_file.txt

************************************************************************


ls - List files
cd directoryname - Change directory
touch filename - Make file
rm filename - Remove file
rm -r directoryname - Remove directory
clear - ear what’s on the screen
nano - create a file and write in it
../ - go up one level

참고 1:
https://nerogarret.tistory.com/m/3


참고 2:
https://apple.stackexchange.com/questions/16593/how-do-i-start-texteditor-from-the-command-line

댓글