Directories in unix/linux need the +x execute permission to function correctly as a directory. If you accidentally remove it, then you won’t be able to cd into the directory.
Linux listing directories
ls -d */
apt-get install history
/var/log/apt/history.log
Configuring a static IP on Debian Wheezy for Raspberry Pi
$ sudo nano /etc/network/interfaces
Change:
iface eth0 inet dhcp
to
iface eth0 inet static
Below this line enter the following, replacing x where necessary for your network config.
address 192.168.x.x
netmask 255.255.255.0
network 192.168.x.0
broadcast 192.168.x.255
gateway 192.168.x.x