First you know the difference between FILE *stdout and Stdout_fileno.
stdin type is file*Stdin_fileno type is intThe functions that use stdin are mainly: Fread, fwrite, fclose, and so on, basically beginning with FFunctions that use Stdin_fileno are:
There are multiple shells in Linux, where Bash is used by default. This chapter describes how shell works, shell types, General Shell operations, and bash features. Shell is the interface between the user and the Linux operating system. There are
Shell is the interface between the user and the Linux operating system. There are multiple shells in Linux, where Bash is used by default. This chapter describes how shell works, shell types, General Shell operations, and bash features. Shell is the
1. Basic Concepts
A, I/O redirection is usually related to FD, Shell FD is usually 10, namely 0~9;
b, commonly used FD has 3, for 0 (stdin, standard input), 1 (stdout, standard output), 2 (stderr, standard error Output), the default and keyboard,
UNIX Environment Advanced Programming read Chapter Three, encountered many redirects and other shell commands. When I think about Linux, it seems necessary to go ahead. Have seen a "embedded Linux software and hardware development detailed" This
Xi. functionsThe shell function is defined by the description of the shell grammar above and holds a series of commands waiting to be executed later. When the shell function name is used as a simple command name, a series of commands associated with
What is a shell scriptShell scripting (English: Shell script), also known as shell Command Draft, programmatic script, is a computer program and text file, the contents of a series of shell commands, through the Unix shell literal translation of its
####### #认识shellThe common shell scripting interpreters on 1.unix/linux include bash, sh, csh, Ksh, and so on, which are used to call them a shell. We often say that there are many kinds of shells, actually speaking of shell script interpreter.Note:
Bash Shell and bashshellI,Terminal Printing
[Root @ cai ~] # Echo welcome to bash!
Welcome to bash!
[Cairui @ cai ~] $ Echo 'Welcome to bash! '
Welcome to bash!
[Cairui @ cai ~] $ Echo "welcome to bash \! "
Welcome to bash \!
(Note: special
What is a shell script sampleLet's look at an example:#!/bin/shcd ~mkdir shell_tutcd shell_tutfor ((i=0; iExample explanation
Line 1th: Specify the script interpreter, here is the interpreter with/bin/sh
Line 2nd: Switch to the current
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.