Linux Common Commands

Description

This is an example of linux common commands. This document is useful for studying linux common commands.

Reviews
Shared by: crisologa lapuz
Stats
views:
288
rating:
not rated
reviews:
0
posted:
9/24/2008
language:
English
pages:
0
SOME BASIC LINUX COMMANDS cd Change directory. This is the command you use to change into different directories. An example would be "cd /mnt" (minus the quotes, always minus the quotes) now you will be the /mnt dir. Mounts a filesystem. ex, "mount /dev/hda4 /mnt" mounts hard drive partition 4 in your /mnt directory. Copies files. eg, "cp SomeFile /home/momo/" copies a SomeFile into user momo's home directory. Move. Does the same as cp except moves the file instead of copying it. You also use the mv command to rename files/directories ex, "mv file1 SomeNewFilename" renames file1 to SomeNewFilename. Make Directory. ex, "mkdir /home/momo/new" creates a directory named new in momo's home directory. If you are currently in the directory you want to make the the new directory in you can just do "mkdir new" to make a directory named "new". Removes files and directories. ex, "rm file1". To use rm without a hassle you may want to use "rm -rf". This way you won't be prompted to confirm the removal of the file. You can not use rm to remove directories which are not empty unless you use an option telling rm to do otherwise, the -rf option works well for this. Use "rm -rf" carefully. Removes empty directories. ex, "rmdir new". displays the man page for a paticular application or command mount cp mv mkdir rm rmdir man chmod changes the permissions for a file; permissions should include a letter designating permissions who gets permissions (u for the user, g for the group, o for others, or a for all) filenames followed by a + or - (to give or take away the permission) followed by the kind of permission (r for read access, w for write access, x for execute if the file is a program or script); the complete command that you type should look like: chmod g-w filename clear ls [-l] [-a] [-p] [-r] [t] [-x] clears the screen lists the files in a directory; -l displays detailed informtion about each file and directory, including persmissions, owners, size and time/date when the file was last modified; -a option displays all the files and subdirectories including hidden files (with names that begin with a dot); -p displays a slash at the end of each ps pwd directory name to distinquish them from filenames; -r displays files in reverse order; -t displays files in order of modification time; -x displays the filenames in columns across the screen. displays information about your processes/jobs/programs which are running on the server displays the current working directory

Related docs
linux commands
Views: 15  |  Downloads: 5
Linux Commands
Views: 613  |  Downloads: 87
Basic Linux Command
Views: 39  |  Downloads: 13
Linux Bash Commands
Views: 603  |  Downloads: 20
mandrake linux commands
Views: 230  |  Downloads: 31
advanced linux commands
Views: 166  |  Downloads: 42
Linux Commands to Know
Views: 1  |  Downloads: 1
basic unix linux commands
Views: 1270  |  Downloads: 220
Linux Fundamentals by Commands and Examples
Views: 193  |  Downloads: 59
basic unix linux commands
Views: 566  |  Downloads: 95
Linux Command Quick Reference
Views: 588  |  Downloads: 120
Basic Linux Commands
Views: 46  |  Downloads: 5
premium docs
Other docs by crisologa lapu...
Amortization Formula Excel
Views: 2169  |  Downloads: 50
Are Mortgage Rates Going Up
Views: 383  |  Downloads: 0
What are the Different Types of Mutual Funds
Views: 514  |  Downloads: 15
Military Pay Charts
Views: 3489  |  Downloads: 9
How Do I Calculate Interest
Views: 848  |  Downloads: 16
Income Properties
Views: 244  |  Downloads: 0
Credit Card Application
Views: 404  |  Downloads: 7
Full Color Business Card
Views: 375  |  Downloads: 5
Check Status of Tax Refund
Views: 476  |  Downloads: 0
Indiana State Tax Forms
Views: 1112  |  Downloads: 4
Mortgage Rate
Views: 113  |  Downloads: 1
Free Investment Advice
Views: 110  |  Downloads: 5
Free Fax Cover Sheets
Views: 2686  |  Downloads: 5
Advertising Slogans
Views: 1416  |  Downloads: 17
Compound Interest Calculators
Views: 176  |  Downloads: 20