Upgrade a single package in Ubuntu
Answer:
To upgrade a single package, first need to perform an update first.
# sudo apt-get update
Then use the install sub command to perform an upgrade, e.g. apache2
#sudo apt-get install apache2
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Upgrade a single package in Ubuntu
Answer:
To upgrade a single package, first need to perform an update first.
# sudo apt-get update
Then use the install sub command to perform an upgrade, e.g. apache2
#sudo apt-get install apache2
How to search for tab characters in a file?
Answer:
The most intuitive way to search for tab characters in a file
# expand file.txt | diff - file.txt
Fix the error "Cannot open your terminal '/dev/pts/x'" when using screen during su
Answer:
When you first "su" into another user account and then invoke the screen command, you will get the error like "Cannot open your terminal '/dev/pts/x'"
To fix this, simply enter..
# script /dev/null
That's all you need!
Modern way to show current IP address(es) in Linux
Answer:
In the past we already showed that you can get the IP information using the command "ifconfig", actually the modern way to do the job is
# ip a
1: lo: mtu 16436 qdisc noqueue state UNKNOWN
..
2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:26:5e:3e:42:d2 brd ff:ff:ff:ff:ff:ff
..
Search for tab characters in vim
Answer:
To search for any tab characters in vim, you can enter the command mode by typing esc key, then type
/\t