2008 October 27

Bash History search

Usually, when typing ‘ls’ and pressing , your current input will be replaced with man mount. If you are using history seach, only past commands beginning with ‘ls’ (the current input) will be shown, in this case ‘ls /usr/src/linux-2.6.15-ARCH/kernel/power/Kconfig’.

You can enable this mode by adding to /etc/inputrc or your ~/.inputrc

"\e[A":history-search-backward
"\e[B":history-search-forward

ArchWiki :: Bash – ArchWiki

By WladyX on 27 October, 2008 | General, Scripts | 1 comment

Ubuntu network alias

sudo vi /etc/network/interfaces

Append the following configuration:

auto eth0:0
iface eth0:0 inet static
name Ethernet alias LAN card
address 192.168.1.11
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0

A-DayS » Creating ethernet alias for eth0 network device on Ubuntu

By WladyX on | General, Ubuntu | A comment?

Find files modified at a certain time

To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories:

find . -mtime -1 -print

Tux Training » Blog Archive » Find files modified at a certain time

By WladyX on | General | A comment?