On 12.01.19 16:31, a k wrote: > so > x@debian: rm home/x/desktop/linuxcnc/m304b > > file that need to delete m304b > also, some file in directory start linuxcnc -- open- file -- show with > extention .txt some does not show any extention. > is file name only that what show up?
To see what is in the directory: x@debian: ls /home/x/desktop/linuxcnc Please note the leading '/' to make it a full path (from the root directory), otherwise the relative path you gave will only be found if you are in '/' (the root directory) at the time¹. To see how old each file is, and how big: x@debian: ls -l /home/x/desktop/linuxcnc That will also show the file permissions on the left. This is useful if an attempt to rm a file gives "permission denied". On linux, extensions do not really mean anything - they are just for your convenience. Use the "file" command to check what sort of stuff is in a file, e.g.: x@debian: file cnc_test27.hal cnc_test27.hal: ASCII text To show variations on m304b, with or without extensions, use a wildcard: x@debian: ls -l /home/x/desktop/linuxcnc/m304b* Or to show only the .txt files: x@debian: ls -l /home/x/desktop/linuxcnc/*.txt If you make a note of these commands, e.g. in a handy text file in your home directory, then it can serve as an "on-line brain" for remembering stuff which isn't used all the time. (Yes, you can do "man rm" or "man ls" on the commandline, but there's a lot extra there, but few examples if any, and not always digestible without an extra cup of coffee first?) ¹ With "cd /home/x/desktop/linuxcnc" you could go to that directory, then simply "ls" to list that directory, and "rm m304b" without full path, as it is now local. When moving about like that, the pwd command will show where you are, or the prompt can be modified to include the current working directory. (That's too much for now, though.) Hope some of that is useful. Erik _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
