To Query the file attributes in unix using a c program

  • Thread starter Thread starter Naveenchandra
  • Start date Start date
  • Tags Tags
    File Program Unix
Click For Summary
SUMMARY

The discussion focuses on querying file attributes in Unix using a C program. Participants suggest using the Unix equivalent of the Linux "stat" system call, which is detailed in the manual page at http://linux.die.net/man/2/stat. This system call retrieves information about the file, including its size, permissions, and timestamps. The conversation emphasizes the importance of understanding system calls in Unix for effective file attribute querying.

PREREQUISITES
  • Understanding of C programming language
  • Familiarity with Unix operating system
  • Knowledge of system calls in Unix
  • Basic understanding of file attributes and metadata
NEXT STEPS
  • Research the "stat" system call in Unix
  • Explore the differences between Unix and Linux system calls
  • Learn about file permissions and attributes in Unix
  • Practice writing C programs that utilize system calls
USEFUL FOR

Developers working with Unix systems, C programmers looking to manipulate file attributes, and anyone interested in system-level programming in Unix environments.

Naveenchandra
Messages
3
Reaction score
0
Hello guys,
I am trying to query the file attributes in unix using a c program..Little help please :)
 
Technology news on Phys.org
Thanks for the help..:)
 

Similar threads

Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
3K
Replies
81
Views
8K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
7K