Jump to content



Photo

Linux command - Posted By Elie Doumit


  • Please log in to reply
No replies to this topic

#1 Cryo Kinesis

Cryo Kinesis

    Haphost Staff

  • Moderators
  • 128 posts
  • LocationGridania, Eorzea

Posted 05 August 2014 - 06:13 PM

hey lets start

command - - Description
zip a file

qzip filename
 
unzip archive 
unzip filename.zip
 
zip archive tar file
tar -zcf newfile.tar file
 
uzip tar fie
tar -zxf newfile.tar
 
zip archive database .tar.gz 
tar -czvf filename.tar.gz db.sql
 
unzip db file tar.gz
tar -zxvf file.tar.gz
 
zip folder ext tar.gz
tar -czvf /home/user/www/filename.tar.gz foldername
 
List Files & Folders
ls
 
List Files & Folders with permissions
ls -la
 
Your Place 
enter more than 1 command ; enter more than 1 command Example ls;pwd
pwd
 
to download a file
history All History Cmnd In The shell
wget downloadfilelink/file.zip
 
to create a folder
mkdir Haphost
 
to remove a file
rm filename
 
to remove a folder
rm -r folder
 
to edit on a file
edit filename
 
to change your directory
cd foldername or path
 
back
cd ..
 
Rename
mv
 
To Search
find
 
To Start A file ./filename
./
 
To Know Server Kernel & Hostname
uname -a
 
to give a permison 777
chmod 777 fileorfolder
 
to create a empty file
touch emptyfile.php
 
cat to get a file on server
cat /etc/passwd
 
To Edit A File 
pico /home/Haphost/public_html/index.html
 
to know the user of the domain
ls -la /etc/valiases/Haphost.com
 
to start a perl file
perl xxxxx.pl
 
to start a python file
python xxxxx.py
 
to start a ruby file
ruby xxxxx.rb
 

Thanks

./Elie d0um1t

Cryo%20Kinesis%20Haphost%20Sig2.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users