Show Menu
Cheatography

linux command for NA Cheat Sheet (DRAFT) by

None Native Linux Command For tech-support

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Filema­nager

cd <Di­rectory Path>
Change directory
mv <Source Path> <De­sti­nation Path>
Move file (It will not work recurs­ively for direct­ories)
rm [-rf]<File or directory Path>
Remove file (-r for direct­ories)
ll <Di­rectory Path>
List files and directoris
ls [-ltrh] <Di­rectory Path>
List files and directoris (compr­ehe­nsive)
stat <File Path>
Display file or file system status
fsort <Di­rectory Path>
Sorted List
du [-sh] <Di­rectory 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> <Di­rectory to store>
Compress file of Folder
unzip <File Name> <Di­recory to Extrac­t>
Extract Zip file
dsu-ne­w-s­napshot
Disk Space Usage Summary
dsu-vi­ew-­sna­pshot
Disk Space Usage (In the form of a table)
gdrvdl <Google Drive link>
Download from Google­Drive
docroot <Domain name>
Home direcotry for specify domain

DNS Managment

dns-ad­d-z­one-rec
-n domain.com. -t A -v "­195.28.10.11­7" domain.com
dns-de­let­e-z­one-rec
-n domain.com. -t A -v "­195.28.10.11­7" domain.com
dns-ed­it-­zon­e-rec
-n domain.com. -t A -v "­195.28.10.11­7" domain.com
dns-sc­an-zone <Do­mai­n>
Display SPF Records
dns-ca­t-zone <Do­mai­n>
Display domain zone
zone-cat <Do­mai­n>
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> <Do­mai­n> {@ns.n­eta­fra­z.com}
Check published DNS records
ip2l <IP>
IP location
ipcheck <IP>
Display location, time-zone, SMTP hostname, Reverse record
whois <Do­mai­n>
Whois Service
curl -I <Do­mai­n/L­ink>
load and transfer a URL
lurl <Do­mai­n/L­ink>
Load from server side without using DNS service
timeout -k 2 2 telnet <Do­mai­n> 21
Dispaly Reverse DNS record

Backups

list-b­ack­up-­arc­hives
List of direct admin config­uration backups
bk-lis­t-w­eek­ly-­arc­hives
List of direct admin config­uration backups
mk-bac­kup­s-dir <Us­ern­ame>
Create a backups directory for user
cptoda­-dump <Fi­len­ame>
Display inform­ation available in Cpanel backup
backup­-mount
Mount the direcotry related to weekly backup
backup­-umount
Unmount the direcotry related to weekly backup
da-res­tor­e-u­ser­-backup <Fi­len­ame>
Restore direct admin backup
weekly­_ba­ckupdir
Weekly backup path
 

Database

db-list
Databases List
db-info <DA­TAB­ASE>
Display inform­ation of database tables
importdb <DA­TAB­ASE> <SQ­L_F­ILE>
Import SQL file to specified Database
backupdb <DA­TAB­ASE> <SQ­L_F­ILE>
Export Database to SQL File
db-create [-s]
Create Database by random password
db-drop <DA­TAB­ASE>
Delete Database
cms-db­passwd [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 <OL­D_D­OMA­IN> <NE­W_D­OMA­IN>
Change domain name
dmsetp­hpver <DO­MAI­N> <PH­PVE­R>
Changing the php version of the domain
dmshowconf <DO­MAI­N>
View Domain Settings
dm-wel­lknown <DO­MAI­N> [on/off]
Create access to the .well-­known directory
ttlset <DO­MAI­N> 100
Set domain ttl value to 100
usr-chttl <Us­erN­ame­>100
Set all domain's ttl value to 100
dmngin­xstatic <DO­MAI­N> [on/off]
Disable static request from Nginx web server side
dm-con­tac­t-f­orm­s-g­eol­imits <DO­MAI­N> [on/off]
Activating access to Contac­t-Forms from abroad
dm-set­-wp­-ge­olimits <DO­MAI­N> [on/off]
Activating access to Wordpress dashboard from abroad

Email-­Acc­ounts

mailadd <EM­AIL­_AC­COU­NT>
add an email account
mailmod [OPTIONS] <EM­AIL­_AC­COU­NT>
modify an email account
mailrm <EM­AIL­_AC­COU­NT>
remove an email account
mailsus <EM­AIL­_AC­COU­NT> [on/off]
Suspend an email account
maills
Display the list of created emails

Direct admin

usr-in­c-t­raffic
Increase bandwidth by 10%
usr-quota
Free disk and inode capacity
usr-pkg
Account Summary inform­ation of the Direct Admin panel
npsp-s­how­-conf
Open ports and service connection restri­ctions
npsp-ftp
ftp access via php
da-msg
Display direct admin messages
catcust <Do­mai­n>
Display custom Apache config
cpi-cat
Check active modules (Memca­ched)
php-ex­tention list
Display the list of php modules that can be activated
php-ex­tention <php modules name> [on/off]
php module activation
ftp-acl add <US­ER> perm <IP>
Add IP to connect to FTP from abroad perman­ently
ftp-acl add <US­ER> temp <IP> {Hours}
Add IP to connect to FTP from abroad tempor­arily by hours
respkg
Inform­ation about reseller users
userdom <Do­mai­n>user
Convert username to domain and vice versa
userdom <Us­ern­ame>
Convert username to domain and vice versa
userips
Display Web IP
دستور افزایش پهنای باند تنها در مواقعی اعمال شده که پهنای باند سرویس کاربر به اتمام رسیده باشد