This is a c program to do Simulation of ls Command in linux. The ls command lists all the contents of the directory including filse and sub-directories. The following program in C language will simulate the ls command.
#include<stdio.h>
#include<dirent.h>
main()
{
Information about resetting and configuring Mobile phones (Java, Android, Symbian etc), educational articles especially for programming in C, C++ and Java and more about Computers and operating systems
Showing posts with label directory. Show all posts
Showing posts with label directory. Show all posts
C Program to Remove (Delete) a Directory using LINUX System Calls
This is a C program to delete or remove a directory using the system calls in Linux or Unix operating systems. The program make use of the remove() system call in Linux.
#include<stdio.h>
#include<fcntl.h>
main()
{
#include<stdio.h>
#include<fcntl.h>
main()
{
Using System calls in C Program to rename a Directory in Linux
C Program to rename a directory in Unix or Linux operating systems using system call rename().
#include<stdio.h>
main()
{
#include<stdio.h>
main()
{
Labels:
$ccpp
,
c program
,
code
,
compiled
,
directory
,
How to
,
lab
,
Linux
,
operating Systems
,
OS
,
OS lab
,
programming
,
rename
,
source code
,
system call
,
UNIX
Subscribe to:
Posts
(
Atom
)