Commads to handle files in IFS

Files in the IFS can be handled with a number of IBM i Commands. Below comes some examples. 

  • Command to list folders and files in the IFS and be handled the via a 5020 interface
    WRKLNK OBJ(‘/home’) OBJTYPE(*ALL) DETAIL(*PRV) DSPOPT(*PRV)

  • Command to display and list folders and files in the IFS
    DSPLNK OBJ(‘/home’) OUTPUT(*) OBJTYPE(*ALL) DETAIL(*PRV) DSPOPT(*PRV)

  • Command to see content of a file in the IFS
    DSPF STMF(‘/home/myfolder/myfile.pdf’) 

  • Command to delete a file in the IFS
    RMVLNK OBJLNK(‘/home/myfolder/myfile.pdf’)