Bash is a Unix shell written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell (sh). Released in 1989, it has been distributed widely as the shell for the GNU operating system and as a default shell onLinux and Mac OS X.
how stuff work: normally after typing commands bash will keep the history in ~/.bash_history file up on log out
you can login and edit / remove .bash_history file in your home folder will do the trick
macbook-pro-2:~ ajay$ vim .bash_history
it helps even if you only need to delete last 10 commands you run..
Question: My Speaker Does not work after using my head phone for a few days i tried everything to make it work, but no luck…..
ANSWER: Just pull the headphone jack in and out a few times very quickly — dont know the reason but it works ! :)
i had to pull in and out for around 6 times
mysql> ALTER TABLE database.table MODIFY column-name varchar(255) default ’10M’;
Query OK, 12137 rows affected (1.40 sec)
Records: 12137 Duplicates: 0 Warnings: 0
Configuration of the “/etc/sysconfig/network-scripts/ifcfg-eth0″ file
In this file, you would find your basic network device configuration. Here, ifcfg-eth0 is the first Ethernet device; ifcfg-eth1 would be the second Ethernet NIC (network interface card), and so forth. In this file, you can have quite a few settings.
||Required / Optional
||You must have this entry specifying the Linux device name.
||yes / no
||Start the device on boot? This will default to yes.
||static / dhcp / none
||Static hard set our IP, or do we want a dhcp assignment? “dhcp”, “none” is the same as static.
||IP address of machine
||The address we want if we are setting a static IP for the interface.
||Required for static IPs. The subnet mask.
||Recommended for static IPs. The network that we are on.
||Network broadcast address
||Recommended for static IPs. The broadcast address.
||Device MAC address
||The MAC address of our network card. Normally provided by the Anaconda installer at install time.
||yes / no
||Allow normal non-administrative user to take down and bring up the device. Defaults to “no”.
||IP address of gateway
||The network gateway IP address.
Not all of these are necessary for proper operation, and the order they are in is irrelevant. I prefer to specify the additional directives of NETWORK and BROADCAST in my /etc/sysconfig/network-scripts/ifcfg-eth0 on machines that I want to have a hard-set IP address, mainly servers of any sort. If you want to use a DHCP-assigned address, your /etc/sysconfig/network-scripts/ifcfg-eth0 file would look something like this:
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]