Linux/Unix Commands





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
LINUX / UNIX cmd
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Introduction
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in A
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in B
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in C
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in D
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in E
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in F
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in G
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in H
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in I
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in J
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in K
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in L
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in M
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in N
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in P
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in R
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in S
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in T
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in U
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in W
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in Y
Forums Ask your doubts
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example More about Linux
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Feedback
 





bc Linux Commands


Tutorials Linux-commands

Topic

What is Linux bc Command?



Explanation

bc COMMAND:
     bc command is used for command line calculator. It is similar to basic calculator. By using which we can do basic mathematical calculations.

SYNTAX:
  The Syntax is
     bc [options]

OPTIONS:
     
-c Compile only. The output is dc commands that are sent to the standard output.
-l Define the math functions and initialize scale to 20, instead of the default zero.
filename Name of the file that contains the basic calculator commands to be calculated this is not a necessary command.



EXAMPLE:
     
  1. bc 
    Output:
    bc 1.06
    Copyright 1991-1994,1997,1998,2000 Free Software Foundation,Inc.
    This is free software with ABSOLUTELY NO WARRANTY.
    For details type `warranty'.
    9*2
    18
    

    The above command used is for mathematical calculations.

  2. bc -l
    Output:
    bc 1.06
    Copyright 1991-1994,1997,1998,2000 Free Software Foundation,Inc.
    This is free software with ABSOLUTELY NO WARRANTY.
    For details type `warranty'.
    1+2
    3
    

    The above command displays the sum of '1+2'.

  3. bc calc.txt
    Output:
    bc 1.06
    Copyright 1991-1994,1997,1998,2000 Free Software Foundation,Inc.
    This is free software with ABSOLUTELY NO WARRANTY.
    For details type `warranty'. 
    3
    

    'calc.txt' file have the following code:1+2. Get the input from file and displays the output.





A Note

Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


Other Links

web hosting

 

Free Hosting

Top Hosting Companies