10 May 2011

Useful Linux commands

Came from the blog of Josh Jordon so thanks!!

man = Help command. Every command in Linux will have it’s own ‘Man’ page.

ls = Lists information about files and directories.
ls -a = hides entries starting with “.”
ls -l = displays entries in a “long-list” format
ls -R = Recursive display. List all subdirectories.

pwd = Show current working directory.
mkdir = Make a directory.
rmdir = Remove a directory.
cd = Change directory.

touch = Create a new file.
cat = Display contents of files.
more = Shows files a page at a time.
find = Search for files that meet a desired criteria.
diff = Shows differences in two files.
chmod = File and directory permissions.

ln = Create links (hard links by default).
ln -s = Symbolic shortcut (more like the shortcuts in Windows).

wc = Word and line count.
wc -c = Word count.
wc -l = Line count.

du = Disk usage.
df = Disk free space.

ps = Process status.
ps -a = Show all processes, including other users.
ps -e = Show processes from everyone.

alias = Allows you to create your own shell commands.
history = shows previous commands used.
ssh = Secure shell client. Aka, remote login.

No comments:

Post a Comment