Linux Guide - Team-Juan/user-guides GitHub Wiki

Logging In and Out

When starting the server, sign in with the username that is connected to the server. Then, if required, type the password associated with that account. Note: The password will NOT display on the screen. To logout, type "logout", without the quote marks, and press enter.

Basic Commands

"ls" -This command will list files and folders in your current directory.

"ls -la" -Similar to the previous command, this one lists all the files and folders, including the hidden ones.

"mkdir name" -To create a new sub directory (folder) use this command and where it says "name" type what you want the folder to be called.

"cd name" -This will allow you to change directories. Where it says "name" type what directory you would like to go into.

"cd" -Type this command to return to the home directory.

"cd .." -When you need to go up a level in the directories, the ".." will be used.

"cd /" -Will take you to the root directory.

"touch name.txt" -The touch command will create a document with the name, and file type provided.

"pwd" -This will print out your working directory.

"cp name.txt name" -Using the cp command, you can copy a file (name.txt) and paste it into a sub directory (name).

"rm name.txt" -The rm command will let you remove a file, just give the file's name.

"mv name.txt eman.txt" -This will rename the file.

"mv eman.txt name" -The mv command can also be used to move a file to another folder.

Other Commands

"more name.txt" -With the more command you can view files page by page.

"less name.txt" -Similar to the more command, the less command lets you view files line by line, moving around the file with the arrow keys.