Linux/1-Commands: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 6: Line 6:
! Example
! Example
|-
|-
| '''Basic'''  
|colspan="4"| <br>'''Basic'''  
|-
|-
| dir
| dir
Line 18: Line 18:
| cat config.txt
| cat config.txt
|-
|-
| '''Files'''
|colspan="4"| <br> '''Files'''
|-
|-
| mkdir
| mkdir
Line 154: Line 154:
|
|
|-
|-
| '''Runlevel'''
|colspan="4"| <br> '''Runlevel'''
|-
|-
| runlevel
| runlevel
Line 181: Line 181:
|
|
|-
|-
| '''Network'''
|colspan="4"| <br> '''Network'''
|-
|-
| pppoeconf
| pppoeconf
Line 248: Line 248:
|
|
|-
|-
| '''Apt'''
|colspan="4"| <br> '''Apt'''
|-
|-
| apt install  
| apt install  

Revision as of 10:13, 9 December 2017

Command Arguments Info Example

Basic
dir -Flah list folder content dir -Flah
cat %file show file content cat config.txt

Files
mkdir %dir create dir mkdir /var/test
rm %file remove file/dir rm autoexec.bat
cp %from %to copy
mv %from %to move
dd if=%in of=%out low level copy dd if=/dev/sda2 of=/dev/sdb2
nano (%file) file editor nano
vi(m) %file file editor vi config.txt
Search
locate %file locate file locate fstab
updatedb update locate database
find / -n %filename search for file
System info
uname -a
free -m
fdisk -l
df -Th
du
ifconfig
ps -aux
top
htop
iotop
iftop
virt-top
netstat
vnstat
who, w
pwd

Runlevel
runlevel
init %rlvl
halt
reboot
shutdown -h now

Network
pppoeconf
wget
ntpdate
dig
whois
nslookup
finger
route -n
traceroute
netstat -tulpn
iwconfig
iwlist scan
nethogs

Apt
apt install <package> (-s = simulation)
apt update
apt upgrade
apt dist-upgrade
aptitude
dpkg -c
dpkg --get-selections
/etc/apt/sources.list
HDD
smartctl read smart info
hdparm set parameters