HoangSon.Io.Vn
  • Trang chủ
  • Smart Home
  • Máy Tính
  • Kiếm Tiền Online
  • Webmaster
  • WordPress
    • Plugin WordPress
    • Theme WordPress
    • Thủ Thuật WordPress
  • Điện Thoại
No Result
View All Result
  • Trang chủ
  • Smart Home
  • Máy Tính
  • Kiếm Tiền Online
  • Webmaster
  • WordPress
    • Plugin WordPress
    • Theme WordPress
    • Thủ Thuật WordPress
  • Điện Thoại
No Result
View All Result
HoangSon.Io.Vn
No Result
View All Result
Trang Chủ Blog

Command SSH for Cpanel

Admin by Admin
25/03/2015
in Blog, IT
0
0
SHARES
13
VIEWS
Chia sẻ lên FacebookChia sẻ lên Twitter

s (cho thấy mọi thứ trong thư mục hiện tại)
ls -a (cho thấy mọi file kể cả file ẩn )
ls -l (Cho thấy mọi file bao gồm cả kích cỡ thông tin file )
tar -zxpf <file.tar.gz> (Giải nén file .tar.gz)
tar -xpf <file.tar> (Giải nén file .tar)
gunzip <file> (Giải nén file .gz)
cp <file> </newlocation/file> (sao chép file đến thư mục khác )
mv <fileold> <filenew) ( Di chuyển file đến 1 vùng khác ,bao gòm cả việc đổi tên )
mkdir <dir> ( Tạo 1 Thư Mục Mới )
rmdir <dir> ( Xoá 1 Thư Mục )
rm <file> ( Xoa File )
rm -rf <dir> Deletes a directory
cd <dir> Moves to a directory
cd ../ Moves to a lower directory
cd ~ Moves to your home directory
cd – Moves to the previous directory
pwd Displays the current directory
pico <file> Edits a file
ftp <site> Connect to a FTP server
lynx <site> View a webpage
df Displays the hard drive stats
quota Displays your quota
uptime Displays the uptime of the server
uname -a Displays the operating system stats
whoami Displays your info
who Displays others connected to the server
last Displays the last login
whereis <file> Tells where a file is located
BitchX IRC Client
mail Check your email
ps -x Displays processes your running
ps -a Displays all processes running
ps -ux Displays running processes, with CPU/Memory usage
kill <pid> Kills a process
kill -9 <pid> Kills an eggdrop process
killall <program> Kills all running process of the same type
whatis <command> Description of commands
man <command> Displays help on the command
nano Same as Pico
Top – gives an overall view of what is going on with the server including memory usage, server load and running processes “q” to exit top
sar -q gives a report of the process list, 1 minute and 5 minute average load every 10 minutes since midnight server time
tar -zcf filename.tar.gz file Tars up the file or directory of your choice, replace filename.tar.gz with the name you want your tar file to have…with the tar.gz extension on the end and replace file with the file or directory you want to tar up. Can also use a path/to/file for both.
updatedb – Updates the locate/search DB
netstat -n -p
Useful to see who is connected to your server, this also resolves hostnames to IP addresses and the -p switch shows you what each person connected is doing and provides a PID for it if there is one… useful if you need to kill something
find / -user username
Replace username with a username of one of your account to find all the files that belong to them. Also useful to add the |more switch so you can scroll one screen at a time. Ever have a client who seems to show a lot more files than are actually in their home directory? This is how you find those files and fix them. Common problem is cpmove files that don’t get properly deleted and get added to a users account.
/scripts/pkgacct2 username
Replace username with a user on your system. This should be done from the home directory. Useful for manually backing up an account if whm copy account doesn’t work. Then just move (mv) the file to a home directory accessible via the web and chown user.user filename and chmod to 750 or 755 and you can wget it from a different server if need be
/scripts/restorepkg username
Once you’ve got the file and need to unpack it you use this command. The file should be in the /home directory to use this though. Remember username not cpmove-username.tar.gz
tail -10 filename
gives you the last 10 lines of a file. Can change the # to whatever you want.
cp -R fileordirectory path/to/destination.
the -R allows you to copy an entire directory to somewhere else.
kill -9
not just for eggdrops… it’s called a “hard kill” and handy for killing off any stubborn process that refuses to die.
tar -zcf filename.tar.gz file
Tars up the file or directory of your choice, replace filename.tar.gz with the name you want your tar file to have…with the tar.gz extension on the end and replace file with the file or directory you want to tar up. Can also use a path/to/file for both.
RESTART SERVICES: service (service name) restart
Stop a service: service (service name) stop
Start a service: service (service name) start
Status (doesn’t work on all): service (service name) status
On a RedHat CPanel server, here are the useful services:
bandmin
chkservd
cpanel crond
exim
httpd
mysql
named
proftpd
/scripts/adddns Add a Dns Entry
/scripts/addfpmail Install Frontpage Mail Exts
/scripts/addservlets Add JavaServlets to an account (jsp plugin required)
/scripts/adduser Add a User
/scripts/admin Run WHM Lite
/scripts/apachelimits Add Rlimits (cpu and mem limits) to apache
/scripts/dnstransfer Resync with a master DNS Server
/scripts/editquota Edit A User’s Quota
/scripts/finddev Search For Trojans in /dev
/scripts/findtrojans Locate Trojan Horses
/scripts/findtrojans < /var/log/trojans
/scripts/fixtrojans < /var/log/trojans
/scripts/fixcartwithsuexec Make Interchange work with suexec
/scripts/fixinterchange Fix Most Problems with Interchange
/scripts/fixtrojans Run on a trojans horse file created by findtrojans to remove them
/scripts/fixwebalizer Run this if a user’s stats stop working
/scripts/fixvaliases Fix a broken valias file
/scripts/hdparamify Turn on DMA and 32bit IDE hard drive access (once per boot)
/scripts/initquotas Re-scan quotas. Usually fixes Disk space display problems
/scripts/initsuexec Turn on SUEXEC (probably a bad idea)
/scripts/installzendopt Fetch + Install Zend Optimizer
/scripts/ipusage Display Ipusage Report
/scripts/killacct Terminate an Account
/scripts/killbadrpms Delete \”Security Problem Infested RPMS\”
/scripts/mailperm Fix Various Mail Permission Problems
/scripts/mailtroubleshoot Attempt to Troubleshoot a Mail Problem
/scripts/mysqlpasswd Change a Mysql Password
/scripts/quicksecure Kill Potential Security Problem Services
/scripts/rebuildippool Rebuild Ip Address Pool
/scripts/remdefssl Delete Nasty SSL entry in apache default httpd.conf
/scripts/restartsrv Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)
/scripts/rpmup Syncup Security Updates from RedHat/Mandrake
/scripts/runlogsnow Force a webalizer/analog update
/scripts/secureit Remove non-important suid binaries
/scripts/setupfp4 Install Frontpage 4+ on an account
/scripts/simpleps Return a Simple process list. Useful for finding where cgi scripts are running from
/scripts/suspendacct Suspend an account
/scripts/sysup Syncup Cpanel RPM Updates
/scripts/ulimitnamed RH 6 only. Install a version of bind to handle many many zones
/scripts/unblockip Unblock an IP
/scripts/unsuspendacct UnSuspend an account
/scripts/upcp Update Cpanel
/scripts/updatenow Update /scripts
/scripts/wwwacct Create a New Account
CRON INFO:
Root crontab: crontab -e
To edit a users cron jobs: crontab -u username -e Replace username with the actual username of the client you want to edit.

Đánh giá post
Bài trước

Xây dựng NAS bằng Raspberry pi

Bài tiếp theo

Dành riêng cho VPS Dream

Admin

Admin

HoangSon.Us

Liên quanBài đăng

Các câu lệnh xóa archive log trong Oracle
IT

Check process ID từ port trong Linux, Solaris

01/11/2024
16
Không cho Chrome tự động redirect sang https
Hệ Điều Hành

Không cho Chrome tự động redirect sang https

24/07/2024
28
8,5 triệu thiết bị chạy windows bị màn hình xanh bởi CrowdStrike update và giải pháp tạm thời
Hệ Điều Hành

8,5 triệu thiết bị chạy windows bị màn hình xanh bởi CrowdStrike update và giải pháp tạm thời

22/07/2024
30
Cách kết nối với PC ở nhà từ xa thông qua ngrok (không cần mở port router)
IT

Cách kết nối với PC ở nhà từ xa thông qua ngrok (không cần mở port router)

10/08/2023
37
Command SSH for Cpanel 1
Docker

Sync time, time zone docker container

19/03/2023
21
GoAccess, Real Time Dashboard monitor for Nginx Proxy Manager – Docker
Docker

GoAccess, Real Time Dashboard monitor for Nginx Proxy Manager – Docker

19/03/2023
43
Bài tiếp theo

Dành riêng cho VPS Dream

Trả lời Hủy

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

  • Trending
  • Bình luận
  • Mới nhất
Cách Active Windows 10 kích hoạt bản quyền số vĩnh viễn

Cách Active Windows 10 kích hoạt bản quyền số vĩnh viễn

02/09/2020
Khắc phục lỗi Wifi báo No Internet, Secured trên Windows 10 2004

Khắc phục lỗi Wifi báo No Internet, Secured trên Windows 10 2004

11/08/2020
Hướng dẫn cách cài lại Windows 10 từ ổ cứng chi tiết

Hướng dẫn cách cài lại Windows 10 từ ổ cứng chi tiết

30/07/2020
Hướng dẫn tải và cài đặt driver card màn hình VGA NVidia

Hướng dẫn tải và cài đặt driver card màn hình VGA NVidia

29/07/2020
Cách Active Windows 10 kích hoạt bản quyền số vĩnh viễn

Cách Active Windows 10 kích hoạt bản quyền số vĩnh viễn

49
Khắc phục lỗi Wifi báo No Internet, Secured trên Windows 10 2004

Khắc phục lỗi Wifi báo No Internet, Secured trên Windows 10 2004

18
Share plugin Elementor Pro v3.0.3 WordPress update liên tục

Share plugin Elementor Pro v3.0.3 WordPress update liên tục

17
Chia Sẻ Theme Newspaper By Tagdiv Update Liên Tục

Chia Sẻ Theme Newspaper By Tagdiv Update Liên Tục

10
FIX update, INSTALL package sau khi vòng đời CentOS 7 ngừng hỗ trợ

FIX update, INSTALL package sau khi vòng đời CentOS 7 ngừng hỗ trợ

22/04/2025
Code Pzem lên Hass Home Assistant ESPHOME

Code Pzem lên Hass Home Assistant ESPHOME

30/03/2025
Code sunsynk-power-flow-card cho luxpython – Home Assistant

Đưa thông tin Luxpower lên Home Assistant dùng LuxPython

30/03/2025
Cài đặt Home Assistant

Cài đặt Home Assistant

29/03/2025

Cập nhật

FIX update, INSTALL package sau khi vòng đời CentOS 7 ngừng hỗ trợ

FIX update, INSTALL package sau khi vòng đời CentOS 7 ngừng hỗ trợ

22/04/2025
2
Code Pzem lên Hass Home Assistant ESPHOME

Code Pzem lên Hass Home Assistant ESPHOME

30/03/2025
5
Code sunsynk-power-flow-card cho luxpython – Home Assistant

Đưa thông tin Luxpower lên Home Assistant dùng LuxPython

30/03/2025
11
Cài đặt Home Assistant

Cài đặt Home Assistant

29/03/2025
3
Các câu lệnh xóa archive log trong Oracle

Check process ID từ port trong Linux, Solaris

01/11/2024
16
Code pzem cho esphome

Code pzem cho esphome

25/03/2025
55
  • Liên Hệ
  • Giới thiệu
  • Chính sách bảo mật
SON

© 2020 bản quyền thuộc về SON

No Result
View All Result
  • Trang chủ
  • Smart Home
  • Máy Tính
  • Kiếm Tiền Online
  • Webmaster
  • WordPress
    • Plugin WordPress
    • Theme WordPress
    • Thủ Thuật WordPress
  • Điện Thoại

© 2020 bản quyền thuộc về SON