Mar 2, 2013

Introducing Basic Linux Commands

The Word terminal is common on Linux as actually windows users are familiar with command promt.  People those are familiar with DOS system on computer will be more familiar with the command promt. Actually this facility is a support application that is design to control computer machine process using the specific command.  Using this application, actually users can control, modify and do some more on the system. They only need to type the specific commands that actually needed to execute some service.


Linux Shel is another major term to mention this stuff. Terminal itself, actually is a name of the application. We can find another similar applications that can be used for the same function: typing command and makes the operating system execute it.

Basically, Linux has the common command which can be implemented in various Linux distribution. This articles will reveals the list of Linux command and shows you their basic function.

See here for details:


CommandSampleFunction
cd..change directory
cd..

Make the parent directory as current directory. By default it sets /home as your current directory

cd /homechange the active/current category to home
pwd
To check the current or active folder
cd..

Make the parent directory as current directory. By default it sets /home as your current directory
ls..show the list of files or directory in current folder/directory

ls -i listing the files/folders is long list
cp...copying the files/directory
cp file1 file 2

Copying contents of file1 into file2. If file2 does not exist, it will be created; if file2 exists it will be  overwritten with the contents of file1.

cp -i file1 file2this command is same with the previous above. But, when the same filename exist, you need to promt it before the system overwrite it.
cp file1 dir2

copy file1 into the folder named dir2

cp dir1 dir2copy files inside the directory dir1 into directory dir2. It will created dir2 if it doesn't exist, otherwise it will create dir1 inside dir2 
mkdir

make directory
mkdir asamake directory named asa
mv

move the files or folders
rmremove files or directory
rm file

removing file/folder named file.

rm filex1 filex2removing file filex1 and filex2
rm -i filex1 filex2

removing file filex1 and filex2 with confirmation before deleting the files.

rm -r dir1 dir2Deleting dir1 and dir2 with all contents inside.
su

command to login as super user
ps
listing active/running service on system
kill

kill the process or running service on system

kill 5562kill the process with the number id 5562 on system. You can see the numerical id using command ps




Other important and related post for Linux Command: