Ubuntu Guys !!! lets familize it

Posted: August 26, 2011 in Ubuntu
Tags: , , , ,

Here is some of the documentation for using “vi” editor for Ubuntu users

vi Editor

Here are some of the TERMINAL commands that you will need always to perform any task in linux,

su : Super User rights from within the terminal
sudo : super user run this command             [  “sudo su”  for ubuntu  ]
ls : list directory contents
ls -lis : list directory content is list view
cd : change directory
cd /dirname : jump change a directory
apt-get install : gets app from web and installs [NOTE from dannyboy: I would use aptitude, it keeps track of dependencies and when you uninstall stuff it takes the dependencies with it, apt-get DOESN’T do this!]
apt-get remove : uninstalls app [same here]
apt-get update : updates the DB [same here]
clear : clears screen
./filename : processes a install command
mkdir : creates a directory
chmod 777 dirname : resets access rights to directory [i don’t know what you mean by resets access right, chomd will make the dir readable, writable, and executable i thought?]
kill 999 : kills process at high level
reboot : reboots system
exit : exits from terminal or moves back a userlevel
make : comlies package code
make install : installs the compiled code
uname -r : gives you the kernel version
dir : will list all directories within your current location
cat filenamehere : will display it’s contents
pwd : will show you your current location (very important if you’re usincli ftp)
cp oldfilename newfilename : copies a file
mv oldfile newfile : will overwrite the oldfile with the newfile
chown usernamehere dirnamehere : changes the dir owner to whoever you put
chgrp groupnamehere dirnamehere : changes the group who owns the dir

man ls # will give you information about ls

tar -xf
Extracts the contents of most tar.** archives.

apt-cache search ****
Searches the apt database for packages with names or descriptions similar to ****

apt-cache show ****
Shows information on package ****, for example “apt-cache show unzip”.

df -h
Shows mounted filesystems and space usage infomation for them.

du -hs /path/to/directory/
Shows the size of the contents of the specified directory.

–>Having an & at the end of the command line sends this process to the background (you regain the prompt to type more commands). If you type a command followed by && and then another command (i.e. $command1 && command2) the second command will only be started when the first one is finished

Few links for better more learnings,

An A-Z Index of the Linux BASH command line

Alphabetical Directory of Linux Commands

Linux Shortcuts and Commands:

For web developers, this link will help installing LAMP on Linux in a proper way so all updates are enable for apache, PHP and MYSQL.

LINK :
Installing LAMP on Ubuntu  (Linux,Apache,MySQL,PHP)
Installing best PHP editor for Ubuntu.
Emacs   

Link:  http://riddell.us/EmacsOnUbuntu.html

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.