Webhosting1st is offering reliable and cheap VPS, prices are starting at just $6/Mo, for more details please check our plans.
After logging-in to your VPS, you should understand the basics of the Linux file system, which is actually very easy to get to grips with.
In Windows, all of your system files are located in ‘c:/’. However, in Linux it is simply ‘/’. This also contains all other disks and partitions.
So, after you have logged in, you will start in the /root/ directory, which is Your home directory (Linux admin). It should be currently empty, but you can check it with the ‘ls’ command:
ls
Lets check for any not empty directory, for example the /etc, type:
ls /etc
You will see content of the /etc directory.
To go to the /etc directory, simply use the ‘cd’ command:
cd /etc
To go back to /root, type:
cd /root
Copy.
Let’s try to copy any file, for example /etc/rsyslog.conf
cp /etc/rsyslog.conf /root
You have just copied rsyslog.conf to /root directory. You can check this by typing:
ls /root
Move.
To move files or directories, use the ‘mv’ command. For example:
mv /root/rsyslog.conf /etc/rsyslog.bak
We have actually just now moved and renamed /root/rsyslog.conf file to /etc/rsyslog.bak.
Delete.
To delete any file, simply use the ‘rm’ command:
rm /etc/rsyslog.bak
Note that you might be asked to confirm the deletion.