Understanding Files

2019.08.24 08:11

GinoSat9153623133158 조회 수:6

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 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 website 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 1956
공지 [Notice] the method of using Lost and Found service [22] octagonseoul 2017.09.06 2480
공지 [공지] 분실물 센터 이용 방법 [24] octagonseoul 2017.09.06 1841
공지 [公告] 失物品使用方式 octagonseoul 2017.09.06 770
3932 Six-Step Online Booking Process For Australian Air Freight RhodaBenn422628 2019.08.24 14
3931 The 25 C. H. Best Tycoon Games SRC:MixSentence, IDs:3CB7D93C;1BC946CC;3305D0B9;86265A78;4AB2D112;984C551E;03F537D6;43AB1F95;925E771F;5D928930;EEBAC3E2;46EEF639;CAD4D8AB;7297FC2F;7AEC1319;06137325;CB1B30D1;43D38E9C;B6AF28BB;1208754A;93777629;10F3DA31 BDBLesli895479610214 2019.08.24 19
3930 How Improbable Is Judi Embden KelleMarvin484256 2019.08.24 3
» Understanding Files GinoSat9153623133158 2019.08.24 6
3928 A Blessing To Sober And Effortless Gamers Like! SRC:MixSentence, IDs:41CA05CD;09F12FC7;AE9A61E8;A0FFF710;1C9B92E7;8BE1DA98;13EF5DE3;D0BFF2AD;473C63B1;85DAE007;F91D5774;A87A855E;02CA2BFB;95909DD4;6014FCBD;FB4C2FC0;ABEA4F5D;94E03783;EEF5DD5B;1646E755; KingXhn8118494762 2019.08.24 1
3927 Clarifying Immediate Programs For Chrysler Parts HildaParkman29205 2019.08.24 2
3926 Clear-Cut Racing Accidents Plans - An A-Z CharlaB666403888920 2019.08.24 2
3925 Clear-Cut Secrets Of Racing Accidents - An Intro DesireeVerco357084 2019.08.24 23
3924 Compared - Practical Car Maintenance Secrets ChristenPittmann226 2019.08.23 2
3923 Panduan Sbobet MonaSasaki4559754028 2019.08.23 256
3922 An Introduction To Clear-Cut Chrysler Parts Solutions Maggie532052585 2019.08.23 17
3921 Wholesale Nfl Jerseys From China88894 HEBGertie975122 2019.08.23 31
3920 Revealing Sensible Systems Of Auto 4 Dreams KathaleenBeverly 2019.08.23 5
3919 Revealing Core Elements Of Claim With Me Bot StellaHarmer2255 2019.08.23 222
3918 An Update On Real-World Secrets In Bitcoin App Mining LeathaMcSharry027919 2019.08.23 433
3917 No-Fuss Solutions For Bathmate Review Around The USA RandolphTarver186 2019.08.23 5
3916 Pertanyaan Nomor Satu Yang Harus Anda Tanyakan Untuk Sbobet DanelleBourque82 2019.08.23 2
3915 Human Hair WigsHuman Hair Wigs 17664 TresaMcwhorter990 2019.08.23 28
3914 Full Lace WigsFull Lace Wigs 34496 HyeGarica64512074 2019.08.23 62
3913 Lace Front Wigsvisit Here 38912 TedByatt236868719 2019.08.23 16