Find the IP Address of your computer running BOSS GNU/Linux

December 22, 2010
ifconfig as regular user Screenshot

running ifconfig as a regular(non-root) user

 

On windows most people are used to finding their IP Addresses via Network Properties or by the ipconfig command. The command to find the IP Address of your computer running BOSS GNU/Linux ifconfig . Note that this command will only run as root, which means that if you are not logged in as root, you will have to first type in the su command and then give the root user’s password before running ifconfig.

screenshot of ifconfig being run when logged in as root

ifconfig being run when logged in as root

 

Advertisements

Find the number of characters in a string/sentence

December 15, 2010

If your ever need to find the number of characters in a sentence ( a.k.a string (in programming) ) and are working on a shell use the following:

echo sentence|wc -c

for instance:

$echo this sentence has many characters|wc -c
34