Posts ๐Ÿ’ป [Computer Basic] ๋ฆฌ๋ˆ…์Šค(Linux) ๋ช…๋ น์–ด ๋ชจ์Œ
Post
Cancel

๐Ÿ’ป [Computer Basic] ๋ฆฌ๋ˆ…์Šค(Linux) ๋ช…๋ น์–ด ๋ชจ์Œ

๋ฆฌ๋ˆ…์Šค(Linux) ๋ช…๋ น์–ด

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$ ls
// ๋””๋ ‰ํ† ๋ฆฌ ์ถœ๋ ฅ(list)

$ cd ..
// ์ƒ์œ„ํด๋”๋กœ ์ด๋™

$ cd
// ๋””๋ ‰ํ† ๋ฆฌ ์ด๋™

$ touch helloworld.java
// .java ํŒŒ์ผ ์ƒ์„ฑ

$ touch something/else.java
// ํ˜„์žฌ ์œ„์น˜์— something ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ ํ›„ ๊ทธ ์•ˆ์— else.java ์ƒ์„ฑ

$ mkdir new_project
// ํ˜„์žฌ ์œ„์น˜์— new_project ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ

$ mv file.java to_new_file.java
// file.java์˜ ์ด๋ฆ„์„ new_file.java ๋กœ ๋ณ€๊ฒฝ

$ mv /foldername /home/yon/java
// fordername ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ /home/yon/java ๋กœ ์˜ฎ๊ธฐ๊ธฐ

$ rm something/file.java
// something ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์˜ file.java ์‚ญ์ œ

$ rm -rf something
// something ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์‚ญ์ œํ•˜๊ธฐ

$ exit()
// ํ”„๋กœ๊ทธ๋žจ ์ข…๋ฃŒ

$ sudo
// root ๊ถŒํ•œ ๋ถ€์—ฌ(admin)

$ ํ”„๋กœ๊ทธ๋žจ๋ช… -v
// ํ”„๋กœ๊ทธ๋žจ ๋ฒ„์ „ ํ™•์ธ

$ code ~/.zshrc
// ์šฐ๋ถ„ํˆฌ ์ฝ˜์†” ์„ค์ •
// .zshrc ํŒŒ์ผ์— alias python=python3.8 ๋ช…๋ น์–ด๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด
// ํŒŒ์ด์ฌ์„ ์‹คํ–‰ํ•  ๋•Œ ๊ธฐ๋ณธ์ ์œผ๋กœ 3.8 ๋ฒ„์ „์„ ์‹คํ–‰ํ•œ๋‹ค

$ sudo tar xvf /ํŒŒ์ผ๋ช….tar.gz
// .tar ํŒŒ์ผ์˜ ์••์ถ•์„ ํ’€์–ด์ฃผ๋Š” ๋ช…๋ น์–ด -์˜ค๋ผํด Java ์„ค์น˜ํ•  ๋•Œ ์‚ฌ์šฉํ–ˆ์Œ

$ sudo vi /etc/profile
// ํ™˜๊ฒฝ์„ค์ • ์ง„ํ–‰

$ mkdir new_project
// ํ˜„์žฌ ์œ„์น˜์— new_project ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ

This post is licensed under CC BY 4.0 by the author.

๐Ÿ‹๏ธโ€โ™‚๏ธ [Workout Log] 2021-05-18

โ˜•๏ธ [Java] Oracle ๋งค๋‰ด์–ผ ๋ฒˆ์—ญ (0)