Basic Linux Commands
A list with some basic (maybe most used) Linux commands, what they do and their syntax, and also some usage examples.
- Change Password
- Change Hostname
- Network Interfaces
- Install SSH Server
- Install Maven
- Install Jenkins
- Package manager for Debian (dpkg command)
Change Password
passwd
passwd {userName}
Resources
Change Hostname
hostname
nano /etc/hostname
nano /etc/hosts
reboot
Resources
Network Interfaces
ifconfig
ifconfig eth0
Resources
Install SSH Server
apt-get install openssh-server
Resources
Install Maven
apt-get install maven
Install Jenkins
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
apt-get update
apt-get install jenkins
Upgrade
apt-get update
apt-get install jenkins
Resources
Package manager for Debian (dpkg command)
dpkg --get-selections [package-name-pattern...]
dpkg -L package-name
Get list of package selections, and write it to stdout. Without a pattern, non-installed packages (i.e. those which have been previously purged) will not be shown.
Categories & Tags
Related
Share