Ladies and gentlemen, crossing, the last time we were talking about DIY date command example, this time we say the example is:DIY pwd command . Gossip Hugh, words return to the positive. Let's talk C chestnuts together!Crossing, when you switch
Linux pwd command C realizes the whole idea
To implement the PWD command:
Enter PWD at the command line: Displays the path that is now located.
Study the system calls required to implement PWD
We can get the system call function
1. pwd : Outputs the current working directorycommand format: pwd [OPTION] ...Example: [email protected] etc]# pwd/etc2. Echo: echo textCommand format:echo [Short-option] ... [STRING] ...Echo long-optionOptions: - N No line break after output
1. Directory Operations:(1) CD (Switch directory)CD ~ Back to home directoryCD Back to home directoryCd.. Back to top directoryCD-Go back to the directory just nowCd/var/spool/mail Absolute PathCd.. /mqueue relative Path (written by/var/spool/mail
#include #include#include#include#include#includestring.h>#include/* Dir *opendir (const char *pathname), which is the open file directory, returns a pointer to the dir struct __dirstream {void *__fd; Char *__data; implement int
Note: When performing some performance tests, we sometimes want to calculateProgramSometimes, you may write a shell script to control the performance test (for example, you want to run n times to obtain the average value). In short, one of these
A chance I saw a QQ number in a group is always based on the message you send your own initiative to reply, at that time very feeling wonderful. I know to be able to simulate the login site, unexpectedly can also be simulated login QQ, the first
Note: While performing some performance testing, sometimes we want to calculate the time a program runs, and sometimes it is possible to write a shell script to facilitate some performance test control (such as the wish to run an average of n times,
Guide
If you use the Linux command line frequently, then using the history command can effectively improve your efficiency, this article will introduce you to the 15 uses of the historical command in the form of an instance.
Overview of a Pro * C program:
1. What is a Pro * C program?
There are three methods to access the database in the ORACLE database management and system;
(1) use SQL * Plus, which has SQL commands to access the database through interactive
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.