Edison Thomas
New Member
First Chapter-basic command of linux through SSH
/direction operation:
rm -rf mydir /*delete mydir*/
mkdir dirname /*creat dirname*/
cd mydir /*enter into mydir*/
cd - /*return last dir*/
cd .. /*back parent dir,one space*/
cd ~ /*back root */
mv tools tool /*rename tools into tool */
ln -s tool bac /*creat bac link for tool*/
cp -a tool /home/vpser/www /*copy the files under tool to www dir */
File command:
rm go.tar /* delet go.tar file */
find mt.cgi /* find file named mt.cgi */
df –h /* figure out space left in disk */
Compress and un:
tar xvf wordpress.tar /* uncompress tar file */
tar -tvf myfile.tar /* check out what is in myfile.tar */
tar cf toole.tar tool /* compress tool into toole.tar*/
tar cfz vpser.tar.gz tool /* cmpress tool dir into vpser.tar.gz*/
Download:
wget download address
wget -c download address
/* continue to download file unfinished*/
/direction operation:
rm -rf mydir /*delete mydir*/
mkdir dirname /*creat dirname*/
cd mydir /*enter into mydir*/
cd - /*return last dir*/
cd .. /*back parent dir,one space*/
cd ~ /*back root */
mv tools tool /*rename tools into tool */
ln -s tool bac /*creat bac link for tool*/
cp -a tool /home/vpser/www /*copy the files under tool to www dir */
File command:
rm go.tar /* delet go.tar file */
find mt.cgi /* find file named mt.cgi */
df –h /* figure out space left in disk */
Compress and un:
tar xvf wordpress.tar /* uncompress tar file */
tar -tvf myfile.tar /* check out what is in myfile.tar */
tar cf toole.tar tool /* compress tool into toole.tar*/
tar cfz vpser.tar.gz tool /* cmpress tool dir into vpser.tar.gz*/
Download:
wget download address
wget -c download address
/* continue to download file unfinished*/