Understanding Files

2019.09.09 02:28

Cathern10832606073 조회 수:3900

In the Desktop directory, as shown in the above example, there are 23 files and 7 directories, representing different file types. In Windows, you are familiar with files having icons that help represent the file type. In the command line, the same thing is accomplished by the file extensions. For example, "forum posts.txt" is a text file because it has a .txt file extension. Time.mp3 is an MP3 music file and minecraft.exe is an executable file.

Listing of file extensions and additional help with file extensions.

For most users, you'll only be concerned with executable files, which as mentioned above, is a file that ends with .exe and website are also files that end with .com and .bat. When the name of these files are typed into the command line, the program runs, which is the same as double-clicking a file in Windows. For example, if we wanted to run minecraft.exe typing "minecraft" at the prompt runs that program.

Note: Keep in mind that if the executable file you are trying to run is not in the current directory you'll get an error. Unless you have set a path for the directory that contains the executable file, which is how the command line finds external commands.

If you want to view the contents of a file, most versions of the command line use the edit command. For example, if we wanted to look at the log file hijackthis.log we would type edit hijackthis.log at the prompt. For 64-bit versions of Windows that do not support this command you can use the start command, for example, type start notepad hijackthis.log to open the file in Notepad. Further information about opening and editing a file from the command line can also be found on the link below.

How to open and view the contents of a file on a computer.

Moving back a directory

You learned earlier the cd command can move into a directory. This command also allows you to go back a directory by typing cd.. at the prompt. When this command is typed you'll be moved out of the Desktop directory and back into the user directory. If you wanted to move back to the root directory typing cd\ takes you to the C:\> prompt. If you know the name of the directory you want to move into, you can also type cd\ and the directory name. For example, to move into C:\Windows> type cd\windows at the prompt.
Creating a directory

Now with your basic understanding of navigating the command line let's start creating new directories. To create a directory in the current directory use the mkdir command. For example, create a directory called "test" by typing mkdir test at the prompt. If created successfully you should be returned to the prompt with no error message. After the directory has been created, move into that directory with the cd command.

댓글 0

목록
번호 제목 글쓴이 날짜 조회 수
공지 [公知] 紛失物センター利用方法 octagonseoul 2017.09.06 804
공지 [Notice] the method of using Lost and Found service [22] octagonseoul 2017.09.06 1183
공지 [공지] 분실물 센터 이용 방법 [24] octagonseoul 2017.09.06 1333
공지 [公告] 失物品使用方式 octagonseoul 2017.09.06 632
4104 Custom BigCommerce Designs Or Templates DessiePham883029 2019.09.10 14
4103 Play A Dominoqq Gambling Game MaynardEoff249184 2019.09.10 2
4102 Wholesale Jerseys From China 46939 NickiGerow47045554 2019.09.10 1
4101 Yang Harus Anda Ketahui Tentang Sbobet Filomena68254141262 2019.09.10 2
4100 Sexy Bikini Swimsuit 67547 NataliaOwsley6883501 2019.09.10 25
4099 Full Lace Wigssimply Click The Up Coming Internet Page 15699 CarolineBohn824864 2019.09.10 1
4098 Full Lace WigsHair Extensions 78108 VernitaMessenger7445 2019.09.10 1
4097 Sex Toys 26410 HeidiTovar3871336635 2019.09.10 21
4096 Sbobet Untuk Dummies ErinBlair2751403 2019.09.09 1
4095 Apa Yang Tidak Akan Diberitahu Orang Banyak Tentang Sbobet NigelGentle44261 2019.09.09 4
4094 Cheap Jerseys Free Shipping 20744 VickyReal37010120969 2019.09.09 2
4093 Understanding Files MargretNorthmore 2019.09.09 3
4092 Human Hair WigsFull Lace Wigs 73421 XQESteffen33974021 2019.09.09 5
» Understanding Files Cathern10832606073 2019.09.09 3900
4090 Menemukan Sbobet Terbaik TandyMaes130101 2019.09.09 1
4089 Mengapa Semua Orang Membicarakan Tentang Sbobet ... Kebenaran Sederhana Terungkap TamaraTopper6427272 2019.09.09 3
4088 Artikel Baru Mengungkap Rendahnya Sbobet Dan Mengapa Anda Harus Mengambil Tindakan Hari Ini FosterConstant5 2019.09.08 3
4087 Kids, Work And Sbobet EmanuelTlx83667 2019.09.08 2
4086 Yes Online Poker Game Is Accumulation In The Body Politic Of Oregon. There Is Presently No Federal Law Against Online Poker, And The Country Of WA Is The Of The Solitary States That Feature Adoptive A Natural Law Against Online Play On A Department O RedaColby82688839 2019.09.08 2
4085 Cheap Jerseys Free Shipping 95735 JacquelineBaley02895 2019.09.08 2