Linux/1-Commands: Difference between revisions
< Linux
No edit summary |
No edit summary |
||
Line 46: | Line 46: | ||
** finger | ** finger | ||
** route -n | ** route -n | ||
* apt | |||
** apt-get install <package> (-s = simulation) | |||
** apt-get update | |||
** apt-get upgrade | |||
** apt-get dist-upgrade | |||
** aptitude | |||
** dpkg -c | |||
** dpkg --get-selections | |||
** /etc/apt/sources.list | |||
== config files == | |||
* /boot/grub/menu.lst | |||
* /etc/rcX.d [Runlevel scripts K=Kill S=Start] | |||
* /etc/dhcp3/dhcpd.conf | |||
* /etc/ssh/sshd_config | |||
* /etc/apache2/*.conf | |||
* /etc/samba/smb.conf | |||
* /etc/network/interfaces | |||
** <pre> | |||
auto eth0 | |||
iface eth0 inet static | |||
address 192.168.0.2 | |||
netmask 255.255.255.0 | |||
network 192.168.0.0 | |||
broadcast 192.168.0.255 | |||
gateway 192.168.0.1 | |||
</pre> | |||
* /etc/fstab | |||
* /etc/hostname | |||
* /etc/inittab | |||
* /etc/hosts | |||
* /resolv.conf |
Revision as of 19:27, 23 July 2012
bash commands
- basic commands
- dir -Flah
- cat %file
- nano
- file system
- mkdir
- rm [remove]
- cp [copy]
- mv [move]
- dd
- file search
- locate %file
- updatedb
- system info
- uname -a
- free -m
- fdisk -l
- df -Th
- du
- ifconfig
- top
- vnstat
- who, w
- runlevel
- runlevel
- init 2
- halt
- reboot
- network
- pppoeconf
- wget
- dig
- whois
- nslookup
- finger
- route -n
- apt
- apt-get install <package> (-s = simulation)
- apt-get update
- apt-get upgrade
- apt-get dist-upgrade
- aptitude
- dpkg -c
- dpkg --get-selections
- /etc/apt/sources.list
config files
- /boot/grub/menu.lst
- /etc/rcX.d [Runlevel scripts K=Kill S=Start]
- /etc/dhcp3/dhcpd.conf
- /etc/ssh/sshd_config
- /etc/apache2/*.conf
- /etc/samba/smb.conf
- /etc/network/interfaces
auto eth0 iface eth0 inet static address 192.168.0.2 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1
- /etc/fstab
- /etc/hostname
- /etc/inittab
- /etc/hosts
- /resolv.conf