Linux and UNIX Man Pages

Test Your Knowledge in Computers #865
Difficulty: Easy
The original idea of a member badging system at UNIX.com was first proposed by Ravinder Singh in 2018.
True or False?
Linux & Unix Commands - Search Man Pages

rewinddir(3) [linux man page]

REWINDDIR(3)						     Linux Programmer's Manual						      REWINDDIR(3)

NAME
rewinddir - reset directory stream SYNOPSIS
#include <sys/types.h> #include <dirent.h> void rewinddir(DIR *dirp); DESCRIPTION
The rewinddir() function resets the position of the directory stream dirp to the beginning of the directory. RETURN VALUE
The rewinddir() function returns no value. CONFORMING TO
SVr4, 4.3BSD, POSIX.1-2001. SEE ALSO
closedir(3), opendir(3), readdir(3), scandir(3), seekdir(3), telldir(3) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 1995-06-11 REWINDDIR(3)

Check Out this Related Man Page

REWINDDIR(3)						     Linux Programmer's Manual						      REWINDDIR(3)

NAME
rewinddir - reset directory stream SYNOPSIS
#include <sys/types.h> #include <dirent.h> void rewinddir(DIR *dirp); DESCRIPTION
The rewinddir() function resets the position of the directory stream dirp to the beginning of the directory. RETURN VALUE
The rewinddir() function returns no value. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +------------+---------------+---------+ |Interface | Attribute | Value | +------------+---------------+---------+ |rewinddir() | Thread safety | MT-Safe | +------------+---------------+---------+ CONFORMING TO
POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD. SEE ALSO
closedir(3), opendir(3), readdir(3), scandir(3), seekdir(3), telldir(3) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. 2015-08-08 REWINDDIR(3)

5 More Discussions You Might Find Interesting

1. Programming

using C to copy a file ...

Hi mates, I have created a shell of my own and one of the built in functions is COPY. This command is supposed to check the availability of a command in a specific direcotry and if the command is available chnage its extension to old. my problem is that how can i search for that specific file in... (1 Reply)
Discussion started by: abdul
1 Replies

2. Programming

Directory tree search???

Hi all, I've got a problem, what function do i use to list the contents of all the directory tree (simular to "find")? Any other suggestions? Thank you all (3 Replies)
Discussion started by: solvman
3 Replies

3. Solaris

Installing samba-tng suite

Hello all I am trying to install sara-sans(http://www.cisecurity.org/top20.htm) on a Solaris 9 server. The process highly recommends the installation of samba-tng suite. In the process of installaing samba-tng, "./configure" went smooth. After that while trying to 'make', it is stopped with the... (0 Replies)
Discussion started by: chrs0302
0 Replies

4. Shell Programming and Scripting

A perl script to list files

Hi guys, I'm learning grep and map functions in perl and ran into a problem. I have a little script below: #!/usr/bin/perl -w die "Usage: $0 dir\n" if @ARGV != 1; opendir (D, $ARGV) or die $!; @text_files = grep { !-d } readdir D; rewinddir D; @sizes = sort {$b <=> $a} map { -s... (7 Replies)
Discussion started by: new bie
7 Replies

5. Programming

Program to search for a file on disk using c++

Hey guy, Is it possible to write a program in c++ to search for file in a particular drive? If so please provide the logic or the code Thanks :) (4 Replies)
Discussion started by: asamgosi
4 Replies

Featured Tech Videos