![]() ![]() Might cause the operating system to associate the file with a Somehow magically turn it into a recording of whale song, though it Naming a PNG image of a whale as whale.mp3 doesn’t Files merelyĬontain bytes it’s up to us and our programs to interpret those bytesĪccording to the rules for plain text files, PDF documents, This is just a convention, albeit an important one. cfg is aĬonfiguration file full of parameters for some program or other, Name is called the filename extension and indicates Programs) tell different kinds of files apart. Most people use two-part names most of the time to help them (and their This is just a convention we can call aįile mythesis or almost anything else we want. You may have noticed that all of Nelle’s files are named ‘somethingĭot something’, and in this part of the lesson, we always used theĮxtension. Once our file is saved, we can use Ctrl+ X to To accept the suggested default of draft.txt. We will be asked to provideĪ name for the file that will contain our text. Once we’re happy with our text, we can pressĬontrol key and, while holding it down, press the Navigating to another directory the first time you ‘Save As…’ If you use your computer’s start menu, it may want to save files in yourĭesktop or Documents directory instead. (probably) use your current working directory as its default location. No matter what editor you use, you will need to know where it Windows also has a built-in editor called notepad that canīe run from the command line in the same way as nano for Learn), or a graphical editor such as Gedit or VScode. Many programmers use Emacs or Vim (both of which require more time to On Unix systems (such as Linux and macOS), It may not be powerful enough or flexible enough for the work you need It can only work with plain character data, not tables, images, When we say, ‘ nano is a text editor’ we really do mean Spaces or other special characters, you should surround the name in ![]() If you need to refer to names of files or directories that have There are specialĬharacters that can cause your command to not work as expected and can Will learn about some of these during this lesson. Many other characters have special meanings on the command line. Mkdir north pacific gyre and see what directory (orĭirectories!) are made when you check with ls -F.Ĭommands treat names starting with - as options. Separate arguments on the command line it is better to avoid them in Spaces can make a name more meaningful, but since spaces are used to ![]() Complicated names of files and directories can make your life painful ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |