초보자를 위한 10가지 기본 Windows 명령

WBOY
풀어 주다: 2024-08-12 07:02:32
원래의
508명이 탐색했습니다.

Windows 시스템을 탐색하는 것이 끝없는 보물찾기와 같다고 느낀 적이 있습니까? 끝없는 메뉴와 폴더를 클릭하면서 하나의 파일이나 설정을 찾으려고 합니다. 바로 여기에서 이러한 명령이 사용됩니다. 이는 작업을 더 빠르게 완료하기 위한 비밀 지름길을 갖는 것과 같습니다. 이러한 10가지 기본 Windows 명령을 익히면 작업 흐름을 간소화할 뿐만 아니라 내부 해커의 채널도 확보할 수 있습니다.

이 문서에 나열된 모든 명령은 명령 프롬프트와 PowerShell 모두에서 사용할 수 있습니다.

1 CD: 쉽게 디렉토리 변경

Windows 파일 시스템 탐색이 미로일 필요는 없습니다. cd(디렉터리 변경) 명령을 사용하면 디렉터리를 쉽게 이동할 수 있습니다.

명령을 사용하려면 cd 다음에 탐색하려는 디렉터리를 입력하세요. 홈 디렉터리에서 문서 폴더로 빠르게 이동해야 합니까? 다음 명령을 입력하세요:

cd Documents
로그인 후 복사
10 Basic Windows Commands for Beginners

아니면 한 레벨 위로 올라가고 싶을 수도 있습니다. cd ..를 입력하면 이전 디렉터리로 돌아갈 수 있습니다. 이는 다른 디렉터리를 빠르게 탐색해야 하는 경우 유용할 수 있습니다.

10 Basic Windows Commands for Beginners

루트 디렉터리에서 시작하여 전체 경로를 제공하면 어디에 있든 특정 경로로 이동할 수도 있습니다. 올바른 구문과 철자를 사용하는 것을 잊지 마세요. System32 디렉터리로 이동하려면 다음 명령을 입력하세요.

cd C: WindowsSystem32
로그인 후 복사
10 Basic Windows Commands for Beginners

파일 시스템의 접근성을 훨씬 더 높이는 것이 중요합니다. Windows에서 디렉터리 변경에 대해 더 자세히 알아보려면 Windows 10의 명령 프롬프트에서 디렉터리를 변경하는 방법을 알아보세요.

2 dir: 디렉터리 내용 나열

폴더를 열지 않고도 폴더 안에 무엇이 있는지 확인하고 싶으십니까? dir(디렉토리) 명령이 답입니다. 터미널에 바로 모든 파일과 디렉터리가 나열됩니다. 현재 디렉터리에 있는 모든 항목의 목록을 보려면 dir을 입력하세요.

10 Basic Windows Commands for Beginners

dir /a를 입력하면 숨겨진 항목을 포함한 모든 파일과 폴더가 해당 디렉터리에 표시됩니다.

10 Basic Windows Commands for Beginners

Tab 키를 사용하면 명령을 입력하는 동안 파일 및 디렉터리 이름을 자동 완성하여 시간을 절약하고 오류를 줄일 수 있습니다.

3 mkdir: 새 디렉터리 만들기

mkdir(디렉토리 만들기) 명령을 사용하여 파일을 즉시 정리하세요. 원하는 곳에 새 폴더를 만듭니다. 새 폴더를 만드는 것은 다음 명령을 입력하는 것만큼 간단합니다:

mkdir NewFolder
로그인 후 복사
10 Basic Windows Commands for Beginners

이 명령은 시스템을 체계적으로 유지하는 좋은 방법입니다.

중첩된 디렉터리 구조를 한 번에 만들고 싶다면 mkdir abc 명령을 사용하면 됩니다. 이 명령은 "a" 디렉터리를 생성하고 "a" 내에 "b" 디렉터리를 생성하며 "b" 내에 "c" 디렉터리를 생성합니다. 이는 각 디렉터리를 개별적으로 생성할 필요 없이 단일 명령으로 여러 수준의 디렉터리를 설정하는 편리한 방법입니다.

10 Basic Windows Commands for Beginners

4 rmdir: 디렉토리 제거

필요하지 않은 빈 폴더가 있나요? rmdir(디렉토리 제거) 명령이 이를 처리합니다. 하지만 비어 있지 않다면 다른 접근 방식이 필요합니다. 빈 디렉터리를 제거하려면 다음을 입력하세요.

rmdir NewFolder
로그인 후 복사
10 Basic Windows Commands for Beginners

디렉터리와 그 안의 모든 항목을 제거하려면 rmdir /s NewFolder 명령을 사용하세요.

10 Basic Windows Commands for Beginners

두 번째 문제에 주의하고 정말로 모든 것을 없애고 싶은지 확인하세요.

mkdir 또는 rmdir 명령을 사용할 때 작업이 성공하면 확인 메시지가 표시되지 않습니다. 디렉토리가 생성 또는 제거되었는지 확인하려면 dir 명령을 사용하여 현재 디렉토리의 내용을 나열할 수 있습니다. 작업이 성공하면 그에 따라 새 디렉터리가 목록에 나타나거나 사라집니다.

If you need more information on a specific command, simply enter help followed by the command. For example, if you need more information on the rmdir command, type the help rmdir command.

5 del: Delete Files

Do you need to delete a file? The del command will do it. Use it wisely because once it's gone, it's gone (sort of). Deleted files on hard drives aren't immediately erased, while on solid-state drives, the data may be wiped more quickly.

To delete a file, type the command del followed by the file(s) you want to delete. For example, to delete file.txt, type this:

del file.txt
로그인 후 복사
10 Basic Windows Commands for Beginners

It’s a powerful command, so handle it with care.

The del command doesn't print anything in response to its use, which might surprise you. Once you run the command, the file will be deleted silently. You can verify that the file has been deleted by using the dir command to check the contents of the directory where the file was located.

6 copy: Copy Files to Another Location

Do you want to back up your files? The copy command makes duplicating files a breeze. To copy file.txt to the C:Backup folder, type the following:

copy file.txt C:Backup
로그인 후 복사
10 Basic Windows Commands for Beginners

By using the wildcard symbol "*" followed by the file extension, you can copy all files with the same extension. For example, to copy all text files to the C:Backup directory, you use this command:

copy * .txt C:Backup
로그인 후 복사
10 Basic Windows Commands for Beginners

Press F7 to view and select from your command history. This allows you to easily re-run previous commands without retyping them.

7 move: Move Files to a New Location

Are you reorganizing your files? The move command lets you move files around on Windows without having to copy them to a new location. To move a file, use the move command followed by the filename and, finally, the location where you want it moved.

As an example, to move file.txt to the C:Backup folder, type this command:

move file.txt C:Backup
로그인 후 복사
10 Basic Windows Commands for Beginners

8 type: Display the Contents of a Text File

Do you want to peek inside a text file without opening it? The type command displays its contents right in the terminal. This can be done by entering type followed by the text file you want to read. To read file.txt, use this command:

type file.txt
로그인 후 복사
10 Basic Windows Commands for Beginners

The cls command clears all text from the terminal screen, giving you a clean slate to work from.

9 systeminfo: View System Information

The systeminfo command provides an overview of your Windows system, perfect for troubleshooting or satisfying your curiosity. It displays information such as the operating system version, processor type, and installed RAM. It also includes details about the computer's network configuration.

10 Basic Windows Commands for Beginners

10 tree: Display Directory Structure

The tree command displays a graphical representation of the directory structure of a drive or path. It's a handy way to see the layout of your files and folders. To see the structure of the Users directory, type this command:

tree C:Users
로그인 후 복사
10 Basic Windows Commands for Beginners

So there you have it: 10 basic Windows commands for beginners that will make you feel like a computer whiz. Practice these commands, and you'll soon be navigating, managing, and troubleshooting your Windows system with ease. Keep exploring, keep experimenting, and watch your command-line skills grow.

您的更改已保存

电子邮件已发送

电子邮件已发送

请验证您的电子邮件地址。

发送确认电子邮件

您已达到帐户中以下主题的上限。

위 내용은 초보자를 위한 10가지 기본 Windows 명령의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

원천:howtogeek.com
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!