-3

When one uses FTP/SFTP on Linux, is the method the server uses to create directories and files mkdir and open or something else entirely?

  • Let me ask you a question - you really think mkdir creates a directory WITHOUT USING ANOTHER API? One lower level? After all, it is a shell command. – TomTom Apr 08 '16 at 05:21

1 Answers1

6

Yes it probably does use mkdir(2) and open(2) (or something very similar).

You could check by running strace(1) on your ftp daemon and exercising it e.g.

strace -p <pid of ftp daemon>
user9517
  • 114,104
  • 20
  • 206
  • 289