What is Command Line?
Command Line Interface (CLI) is a tool into which you can type text commands to perform specific tasks—in contrast to the mouse's pointing and clicking on menus and buttons. Since you can directly control the computer by typing, many tasks can be performed more quickly, and some tasks can be automated with special commands that loop through and perform the same action on many files—saving you, potentially, loads of time in the process.You can just type what you want then the computer will give, simple isn't it?
Bellow are some Basic Linux Command which can used for you.
List File (ls)
It used for display list of files inside active directory. You can pass a number of parameters to the command to display extra details or change the sorting. Example :
add -l after ls so it will look like this ls -l it will display a detailed listing. ls -t
we will sort the result by file time. ls
-S
will sort by file size. ls -r reverse the sorting. You can also combine all parameter like bellow : ls -al
You will see hidden file and detailed listing.
There is 2 entry on display "." and ".."
"." means current folder and ".." parrent folder
Change Directory (cd)
We can change from directory to other directory using cd.
example :
cd ..you can use the above command to switch to the directory directly above the current one.
If you want to change to destination directory. Example :
cd testtest is destination directory or you can change directory with full path like bellow
cd test1/test2/test3above comand will make change to directory test3
Show Current Path
If you want to show where is your current folder, just type
pwdThe result will look like this, depend what is your folder name
$ pwdI will post next command to next article..
/home/zerrow
0 comments:
Post a Comment