AM335X-PAC Series User Manual version 2.0.1 Page: 54
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
3.1.3. mkdir: creates a subdirectory (Equivalent DOS Command: md)
Parameter
Description
Example
-p
No error if the subdirectory exists, and creates the parent
directories as needed
mkdir -p directory
3.1.4. rmdir: deletes the subdirectory which must be empty (Equivalent DOS
Command: rd)
Parameter
Description
Example
-p
Removes the specified DIRECTORY, then attempts to remove
each parent directory component with the same path name
rmdir -p directory
3.1.5. rm: deletes (removes) the file or directory (Equivalent DOS Command:
delete)
Parameter
Description
Example
–
i
Displays a warning message before deleting
rm
–
i test.exe
–
r
Deletes the directory even if it isn’t empty
rm
–
r test.exe
–
f
No warning message displayed when deleting
rm -f test.exe
3.1.6. cp: copies one or more files (Equivalent DOS Command: copy)
Parameter
Description
Example
–
R
Performs a recursive copy
cp -R test bak
–
i
Displays a confirmation prompt before overwriting
cp
–
i test bak
-l
Links the files instead of copying them
cp
–
l test bak
3.1.7. mv: moves or renames a file or directory (Equivalent DOS Command: move)
Parameter
Description
Example
-f
Does not display a confirmation prompt before overwriting
cp
–
f sour des
–
i
Displays a confirmation prompt before overwriting
cp
–
i /sour /des
3.1.8. pwd: displays the full path of the current working directory
3.1.9. who: displays a list of the users current logged on