Understanding Files

2019.06.20 19:19

ForrestMarquis0 조회 수:85316

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 the directory name. For example, website 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 997
공지 [Notice] the method of using Lost and Found service [22] octagonseoul 2017.09.06 1229
공지 [공지] 분실물 센터 이용 방법 [24] octagonseoul 2017.09.06 1363
공지 [公告] 失物品使用方式 octagonseoul 2017.09.06 652
» Understanding Files ForrestMarquis0 2019.06.20 85316
6888 Understanding Files TeraElrod5499638 2019.05.22 30537
6887 Understanding Files RosalynStovall368810 2019.04.20 24942
6886 Yang Mesti Kamu Ketahui Berkenaan Main-Main Sepak Bola Di Bandar Bola FredrickWatts8711 2019.06.22 19125
6885 Recreation Intelligently With This Great Gaming Advice MichalEscalante6 2019.06.29 16502
6884 Usul Yang Teramat Baik Menyangkut Sepak Bola Yg Ingin Kamu Baca Di Website Dewi365 Tania64R644539922736 2019.07.20 15303
6883 Seluruh Keluhan Sepak Bola Kamu Akan Dijawab Di Sini Oleh Dewi365 CarrieShumway797492 2019.06.22 13472
6882 Tutorial Medapat Kemenangan Judi Bola Online EugeniaAhg448101871 2019.07.26 10264
6881 Taktik Menang Bermain DominoQQ. AmyOReilly1423719 2019.06.03 10021
6880 China's Baidu Beats Forecasts As It Sidesteps Censors, Boosts Ad Sales PaulaStallings059185 2018.07.25 8559
6879 Understanding Files BryanMcnamee72767 2019.04.03 8442
6878 All You Must Know About Panic Attacks RomanHowse1462952479 2019.05.11 7650
6877 Como Ser Feliz No Casório ~ Ministério De Casais BenjaminMoura37587 2019.05.29 6645
6876 Cara Menang Bermain BandarQ Di Pkv Game ClaritaLindley0 2019.06.14 5457
6875 Continue To Keep These Auto Restoration Recommendations In Your Mind AndersonHowton5062 2019.05.22 5266
6874 Understanding Files DeonGriffiths230349 2019.09.22 5256
6873 4 Metode Keagungan Dalam Main-main Judi Bola MalissaEzell27807613 2019.06.16 4253
6872 Tips For Battling Back Again Against Panic Attacks ReganFrank45538478 2019.05.11 4002
6871 Understanding Files RuthKeiser9108063596 2019.08.14 3997
6870 Putus Asa Untuk Saran Sepak Bola? Ini Yaitu Untuk Anda Pada Situs Bola168 Karolyn606644706791 2019.10.24 3974