Cheatography
https://cheatography.com
None Native Linux Command For tech-support
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Filemanager
cd <Directory Path> |
Change directory |
mv <Source Path> <Destination Path> |
Move file (It will not work recursively for directories) |
rm [-rf]<File or directory Path> |
Remove file (-r for directories) |
ll <Directory Path> |
List files and directoris |
ls [-ltrh] <Directory Path> |
List files and directoris (comprehensive) |
stat <File Path> |
Display file or file system status |
fsort <Directory Path> |
Sorted List |
du [-sh] <Directory Path> |
Estimate file space usage (Human readable) |
tar [-zxvf] <File Path> |
z:Gzip j:Bzip2 -v:Verbose x:Extract c:Create f:file |
wget <http or https link> |
Network downloader |
set-perms [-v|-vv] DOMAIN |
Change Permision |
zip [-r] <File Name> <Directory to store> |
Compress file of Folder |
unzip <File Name> <Direcory to Extract> |
Extract Zip file |
dsu-new-snapshot |
Disk Space Usage Summary |
dsu-view-snapshot |
Disk Space Usage (In the form of a table) |
gdrvdl <Google Drive link> |
Download from GoogleDrive |
docroot <Domain name> |
Home direcotry for specify domain |
DNS Managment
dns-add-zone-rec |
-n domain.com. -t A -v "195.28.10.117" domain.com |
dns-delete-zone-rec |
-n domain.com. -t A -v "195.28.10.117" domain.com |
dns-edit-zone-rec |
-n domain.com. -t A -v "195.28.10.117" domain.com |
dns-scan-zone <Domain> |
Display SPF Records |
dns-cat-zone <Domain> |
Display domain zone |
zone-cat <Domain> |
Display domain zone |
برای افزودن، حذف و تغییر رکورد های لازم است مطابق با مثال مقادیررا به ترتیب وارد فرمایید در زمان ایجاد رکورد لازم است کاراکتر نقطه در انتهای نام دامنه درج شود
CMS
wp-home |
Display the home page of the website |
wp-plugins |
Display WordPress site plugins |
wp-theme |
Display Active theme of the WordPress website |
Cheking website
dig <Rec Type> <Domain> {@ns.netafraz.com} |
Check published DNS records |
ip2l <IP> |
IP location |
ipcheck <IP> |
Display location, time-zone, SMTP hostname, Reverse record |
whois <Domain> |
Whois Service |
curl -I <Domain/Link> |
load and transfer a URL |
lurl <Domain/Link> |
Load from server side without using DNS service |
timeout -k 2 2 telnet <Domain> 21 |
Dispaly Reverse DNS record |
Backups
list-backup-archives |
List of direct admin configuration backups |
bk-list-weekly-archives |
List of direct admin configuration backups |
mk-backups-dir <Username> |
Create a backups directory for user |
cptoda-dump <Filename> |
Display information available in Cpanel backup |
backup-mount |
Mount the direcotry related to weekly backup |
backup-umount |
Unmount the direcotry related to weekly backup |
da-restore-user-backup <Filename> |
Restore direct admin backup |
weekly_backupdir |
Weekly backup path |
|
|
Database
db-list |
Databases List |
db-info <DATABASE> |
Display information of database tables |
importdb <DATABASE> <SQL_FILE> |
Import SQL file to specified Database |
backupdb <DATABASE> <SQL_FILE> |
Export Database to SQL File |
db-create [-s] |
Create Database by random password |
db-drop <DATABASE> |
Delete Database |
cms-dbpasswd [wp, jm] |
Reseting database password of a known CMS |
cms-dbdump [wp, jm] |
Display database parameters of a known CMS |
Domain
dm-list |
Display the list of domains |
dm-create <Domain name> |
Add new domain |
dm-delete <Delete name> |
Delete a domain |
dm-owner <Domain name> |
Display usernames that use this domain or subdomains based on this domain |
dom-rename <OLD_DOMAIN> <NEW_DOMAIN> |
Change domain name |
dmsetphpver <DOMAIN> <PHPVER> |
Changing the php version of the domain |
dmshowconf <DOMAIN> |
View Domain Settings |
dm-wellknown <DOMAIN> [on/off] |
Create access to the .well-known directory |
ttlset <DOMAIN> 100 |
Set domain ttl value to 100 |
usr-chttl <UserName>100 |
Set all domain's ttl value to 100 |
dmnginxstatic <DOMAIN> [on/off] |
Disable static request from Nginx web server side |
dm-contact-forms-geolimits <DOMAIN> [on/off] |
Activating access to Contact-Forms from abroad |
dm-set-wp-geolimits <DOMAIN> [on/off] |
Activating access to Wordpress dashboard from abroad |
Email-Accounts
mailadd <EMAIL_ACCOUNT> |
add an email account |
mailmod [OPTIONS] <EMAIL_ACCOUNT> |
modify an email account |
mailrm <EMAIL_ACCOUNT> |
remove an email account |
mailsus <EMAIL_ACCOUNT> [on/off] |
Suspend an email account |
maills |
Display the list of created emails |
Direct admin
usr-inc-traffic |
Increase bandwidth by 10% |
usr-quota |
Free disk and inode capacity |
usr-pkg |
Account Summary information of the Direct Admin panel |
npsp-show-conf |
Open ports and service connection restrictions |
npsp-ftp |
ftp access via php |
da-msg |
Display direct admin messages |
catcust <Domain> |
Display custom Apache config |
cpi-cat |
Check active modules (Memcached) |
php-extention list |
Display the list of php modules that can be activated |
php-extention <php modules name> [on/off] |
php module activation |
ftp-acl add <USER> perm <IP> |
Add IP to connect to FTP from abroad permanently |
ftp-acl add <USER> temp <IP> {Hours} |
Add IP to connect to FTP from abroad temporarily by hours |
respkg |
Information about reseller users |
userdom <Domain>user |
Convert username to domain and vice versa |
userdom <Username> |
Convert username to domain and vice versa |
userips |
Display Web IP |
دستور افزایش پهنای باند تنها در مواقعی اعمال شده که پهنای باند سرویس کاربر به اتمام رسیده باشد
|