|
41.
|
|
|
Typing 'dmesg | tail' after you plug in usb storage will give you its partition name (ex: /dev/sdb1) simplifying the mounting process.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:131
|
|
42.
|
|
|
The column allows you to format output neatly. ex: 'mount | column -t' will reformat mount's messy output. See 'man column' for more info.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:134
|
|
43.
|
|
|
Use awk to quickly filter columns from some command output. e.g.: ls -l | awk '{print $3 " " $9}'
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:137
|
|
44.
|
|
|
You can change your hostname by editing the file /etc/hostname.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:139
|
|
45.
|
|
|
Use 'dpkg --get-selections > selections.txt' to save a selection and 'dpkg --set-selections < selections.txt && apt-get dselect-upgrade' to restore.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:142
|
|
46.
|
|
|
To deactivate a service at boot, for example, apache2: 'sudo update-rc.d -f apache2 remove'. To activate it: 'sudo update-rc.d apache2 install defaults'.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:146
|
|
47.
|
|
|
Tired of repeatedly pressing 'y' through some shell process (e.g. fsck)? Try the 'yes' command. 'man yes' for more info.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:149
|
|
48.
|
|
|
For a lightweight VPN alternative, have a look at ssh + netcat-openbsd for SOCKS proxy support.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:152
|
|
49.
|
|
|
Use the 'watch' command to repeat the same command a regular interval and get helpful datetime output. 'man watch' for more details.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:155
|
|
50.
|
|
|
Use lsof to find out which process has open handles for a file. 'lsof +D /path' will find all processes for the given path. This is useful for unmounting media.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
ubuntu-server-tips:159
|