Here are some basic commands to get you started in the wonderful world of Linux and other
UNIX variants. All of these commands should work from your command prompt (regardless which shell you’re using).You MUST press enter to invoke the command.All
UNIX and Linux commands are case sensitive. There are of course thousands of
Linux related commands and procedures.
You can also execute multiple commands by separating each one with a ; for example cd newdir; mkdir thatdir ; ls -la will first change directories to the newdir directory, then create a directory called thatdir, then list all the files in long format. You can string together as many commands as you like but caution should be used not to inadvertently do anything harmful.
If you think some thing need to be added to this list let me know.
access - determine whether a file can be accessed
Syntax
access -mode file
For more options and how to use check access
man page
alias - define or display aliases
Syntax
alias [alias-name[=string] …]
For more options and how to use check alias
man page
bg - run jobs in the background
Syntax
bg [job_id ...]
For more options and how to use check bg
man page
cal - displays a calendar
Syntax
cal [-smjy13 ] [[ month ] year ]
For more options and how to use check cal
man page
cd - change directories
Use cd to change directories. Type cd followed by the name of a directory to access that directory.Keep in mind that you are always in a directory and can navigate to directories hierarchically above or below.
Syntax
cd [-L | -P] [directory]
For more options and how to use check cd
man page
chown - change file owner and group
Syntax
chown [OPTION] OWNER[:[GROUP]] FILE
chown [OPTION] :GROUP FILE
chown [OPTION] --reference=RFILE FILE
For more options and how to use check chown
man page
chmod - change file access permissions
Syntax
chmod [-r] permissions filenames
Options
r Change the permission on files that are in the subdirectories of the directory that you are currently in. permission Specifies the rights that are being granted. Below is the different rights that you can grant in an alpha numeric format.filenames File or directory that you are associating the rights with Permissions
u - User who owns the file.
g - Group that owns the file.
o - Other.
a - All.
r - Read the file.
w - Write or edit the file.
x - Execute or run the file as a program.
Numeric Permissions:
CHMOD can also to attributed by using Numeric Permissions:
400 read by owner
040 read by group
004 read by anybody (other)
200 write by owner
020 write by group
002 write by anybody
100 execute by owner
010 execute by group
001 execute by anybody
For more options and how to use check chmod
man page