Công nghệ > Back

Linux command line (các lệnh trên linux)

Linux command line (các lệnh trên linux)

Linux command line (các lệnh trên linux)

[SYSTEM]

- check version linux:

$ cat /proc/version

$ cat /etc/centos-release

 

[ File - Directory ]
#  - View path of directory
$ pwd

#  - Linux remove entire directory including all files and sub-directories command
$ rm -rf letters/

 

[SSH]
$ ssh root@209.126.105.184 -p8622


[SCP]
$ scp -P 8622  -r root@209.126.105.184:/var/www/vhosts/condor1117.startdedicated.com/apkkul.com/templates/_www/apk.mobile/images /Applications/AMPPS/www/templates/_www/apkkul.com/images

[ZIP]
$ zip -r apkkul.db.zip apkkul.db
$ unzip apkkul.zip -d install


[Mysql]
$ mysql -u root -p wp_users < wp_users.sql
$ mysql -u root -pPassword123 wp_users < wp_users.sql