Within portions of the system that other users expect to remain unchanged. You'll be less likely to create, copy, move, or (worst of all) delete files Perform the tasks shown in the following examples from your home directory, This is a directory establishedįor you by your system administrator when your account was created. Will make the commands and their respective concepts easier to understandīefore you start experimenting with files, make sure that you are in 3.2 Using File CommandsĮach of the commands presented in this section includes an example of The contents of a file and how to determine the nature of a file. Listing, copying, moving, and deleting files. The following section explains the commands available for creating, Is simply a file that contains other files. Printer, and disk drive(s) are all treated as files. Provides the current date, is an executable file. For example, the dateĬommand that you saw in the previous chapter, which executes a program that ![]() Almost everything is treated as a file, including:įiles, such as letters or reports, computer source code, or anything elseĪre executable files that is, they are files you canĮxecute to run a particular program. The file is the basic unit in the SunOS operating Make use of the SunOS operating system it is essential for you to understand The OpenWindows environment or are logged in from a remote terminal. To any SunOS command line, whether you are using a Shell or Command Tool in With files and directories from the SunOS command line. This chapter introduces you to the concepts and procedures used to work Moved, and commands are selected from menus. This is different than using the OpenWindowsįile Manager, where files are displayed as icons that can be clicked on and You type in the file and directory names in conjunction with SunOS commands The SunOS command line is used to manipulate files and directories. Size, but with arbitrary data types.Chapter 3 Working with Files and Directories In computer science, a tuple is a list-like collection of fixed Helm templates have a function to make thisĮasy: tuple. Sometimes it's useful to be able to quickly make a list inside of your template,Īnd then iterate over that list. Technique for embedding big blocks of data inside of your manifests, as The |- marker in YAML takes a multi-line string. To understand why this is the case, take a look at theįor us, though, this detail doesn't matter much. Why would we do this? Because the data in ConfigMapsĭata is composed of key/value pairs, where both the key and the value are So our list of toppings is actually not a YAML The toppings: |- line isĭeclaring a multi-line string. Now, in this example we've done something tricky. # Source: mychart/templates/configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: edgy-dragonfly-configmap data: myvalue: "Hello World" drink: "coffee" food: "PIZZA" toppings: |- "Mushrooms" Using this syntax, we can modify our template to get rid of those new lines: Why? When the templateĮngine runs, it removes the contents inside of means ![]() ![]() ![]() Notice that we received a few empty lines in our YAML. # Source: mychart/templates/configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: telling-chimp-configmap data: myvalue: "Hello World" drink: "coffee" food: "PIZZA" mug: "true"
0 Comments
Leave a Reply. |