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 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
3943 Swift Advice In Fica Bonus South Africa - An Update TammieBaumann2367001 2019.08.25 26
3942 Outlines For Convenient Products In Porkys Truck Stop HildegardeDenehy1 2019.08.25 3
3941 Dota 2 Ember Smell Hero Guide: Strategy, Tips, And Tricks SRC:MixSentence, IDs:8847B67A;3CB7D93C;53BE460A;3C7D621D;486700EA;D53D1827;1DD2BB49;DC4109A0;56761C24;45E5C68E;41CAD76A;F787068A;787BB9AA;C157ADC1;520A7558;7E05DAF0;576CA1D7;3BE8C130;289CB86B HarryAdkins7294066 2019.08.25 0
3940 An Analysis Of Immediate Solutions Of Porkys Truck Stop KirstenWoolacott677 2019.08.25 14
3939 Lace Front WigsWigs 10202 SeleneHaris56069 2019.08.24 63
3938 Real-World Plans In Houseplants Considered Carley298040811397 2019.08.24 3
3937 Effective Ficus Bonsai Tree Programs - Where To Go NannetteEyler559559 2019.08.24 6
3936 Painless Systems For Hen Night Ideas In The USA LorenaDrost52581 2019.08.24 5
3935 Deciding Upon Real-World Solutions Of Bachelorette Parties ReginaldGratwick99 2019.08.24 4
3934 Not So Massively: LoL Downed By DDoS Attack, Champion Citizen Hits $36 Million MelissaFosdick1 2019.08.24 2
3933 Six-Step Online Booking Process For Australian Air Freight RhodaBenn422628 2019.08.24 14
3932 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 2
3931 How Improbable Is Judi Embden KelleMarvin484256 2019.08.24 3
» Understanding Files GinoSat9153623133158 2019.08.24 6
3929 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
3928 Clarifying Immediate Programs For Chrysler Parts HildaParkman29205 2019.08.24 2
3927 Clear-Cut Racing Accidents Plans - An A-Z CharlaB666403888920 2019.08.24 2
3926 Clear-Cut Secrets Of Racing Accidents - An Intro DesireeVerco357084 2019.08.24 12
3925 Compared - Practical Car Maintenance Secrets ChristenPittmann226 2019.08.23 2
3924 Panduan Sbobet MonaSasaki4559754028 2019.08.23 2