$ chmod 700 test This changes the permissions

$ chmod 700 test This changes the permissions of the directory to give you complete access and everyone else no access at all. (The new permissions should read like rwx——.) 6. Next, make the test directory your current directory as follows: $ cd test Identifying Directories When you need to identify your home directory on a shell command line, you can use the following: $HOME This environment variable stores your home directory name. ~ The tilde (~) represents your home directory on the command line. You can also use the tilde to identify someone else s home directory. For example, ~chris would be expanded to the chris home directory (probably /home/chris). Other special ways of identifying directories in the shell include the following: . A single dot (.) refers to the current directory. .. Two dots (..) refers to a directory directly above the current directory. $OLDPWD This environment variable refers to the previous working directory before you changed to the current one. Using metacharacters and operators To make more efficient use of your shell, the bash shell lets you use certain special characters, referred to as metacharacters and operators. Metacharacters can help you match one or more files without typing each file out completely. Operators let you direct information from one command or file to another command or file. Using file-matching metacharacters To save you some keystrokes and to be able to refer easily to a group of files, the bash shell lets you use metacharacters. Anytime you need to refer to a file or directory, such as to list it, open it, or remove it, you can use metacharacters to match the files you want. Here are some useful metacharacters for matching filenames: * This matches any number of characters.
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Leave a Reply