Hello

if i have a file residing on a unix machine, how do i get the stats of the file, ie date stamp of file, and username of file.

Best Regards

$ man stat

Great, i can now get all sorts of info for my file.

I tried using the uid to get user id, this displays integer values from the password file i think.

How can i display the username ie chrism

man getpwuid

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.