Web hosting - Creating files and directories As a Red Hat

Creating files and directories As a Red Hat Linux user, most of the files you save and work with will probably be in your home directory. Here are some of the commands you use in the file creation process: cd Change to another current working directory pwd Print the name of the current working directory mkdir Create a directory chmod Change the permission on a file or directory ls List the contents of a directory The following procedure steps you through creating directories within your home directory, moving among your directories, and setting appropriate file permissions: 1. First, go to your home directory. To do this, simply type cd. (For other ways of referring to your home directory, see the sidebar on identifying directories.) 2. To make sure that you got to your home directory, type pwd. When I do this, I get the following response (yours will reflect your home directory): $ pwd /home/chris 3. Create a new directory called test in your home directory, as follows: $ mkdir test 4. Check the permissions of the directory by typing: $ ls -ld test drwxr-xr-x 2 chris sales 1024 Jan 24 12:17 test Notice that this listing says that test is a directory (d), the owner is chris, the group is sales, and the file was most recently modified on Jan 24 at 12:17 p.m. Suppose that you want to prevent everyone else who uses this computer from using or viewing the files in this directory. The permissions for the directory are rwxr-xr-x. I explain what these permissions mean later in this section. 5. For now, type the following:
You want to have a cheap webhost for your apache application, then check apache web hosting services.

Leave a Reply