Unix Commands Tutorial




On this page I will try to explain some syntax or command used on Unix or Linux. In principle, there are many similarities "order" in all unix-based operating system or linux. Because it all started from the same programming language. And for those who are already accustomed to using the "command prompt", is certainly no stranger anymore.

Here are a few basic commands:

1. create the directory; 
mkdir [directory name]

for example: mkdir try



2. Delete the file; 
rm [file name] or rm [file location/filename]

eg: rm test.txt

3. Remove the directory; 
rmdir [directory name] or rmdir -r [directory name]

for example: rmdir try
e.g.: rmdir-r test – > (move the directory along with its contents)

4. Move the file;
mv [file position] [purpose of the position]

for example: mv test.txt data\test\execise 

5. Copy the file 
cp [position file] [file destinations]

6. Change the position from one directory to another directory 
cd [destination directory]
7. Want to know the position of the current (active)
pwd

8. View the contents of a folder
the dir or ls or ll
e.g. ls



Next
Previous
Click here for Comments

0 comments: