- I'm new to Linux. What are some basic commands?
- Here is a list of some commonly used commands:
- cd directory_name
- Moves your to the specified directory. If you replace directory name with two dots (..) you will move up one directory.
- pwd
- Displays your current directory
- ls -l
- Lists the files and sub-directories in your current directory including the permissions in the form ----------. All web pages should show -rw-r--r--, directories should show drwxr-xr-x and cgi scripts should show -rwxr-xr-x.
- rm file_name
- Removes the specified file.
- rmdir directory_name
- Removes the specified directory
- mv old_file_name new_file_name
- Moves (renames) the old file name to the new file name.
- cp old_file_name new_file_name
- Copies the old file to a new file.
- chmod xxx file_or_directory_name
- Set permissions on files and directories to xxx. You can replace the file name with * to change all files and sub-directories in your current directory. Some common values for xxx are:
Directories and cgi scripts - 755
Web Pages - 644
- man command
- Displays the manual page (man page) of a command which lists how to use the command along with different options that may be available.
-
- How do I access my shell account?
- You will need a connection to the Internet and a Secure Shell (SSH) client. Some available clients are:
Linux - SSH
Windows - TeraTerm (with SSH feature)
Mac - Nifty Telnet
-
- Where do I put my Web pages?
- After you log in (via SSH or FTP) you will be in your home directory. There are several sub-directories in your home directory, including one named htdocs.
Your Web pages must be stored under the htdocs directory to be seen by the public.
|