Quote:
There is no "file list" to delete! Ctrl-R is Read File Ctrl-T is just showing you a listing of the files in the current directory -- so that you don't have to type a file name for the Read File (Ctrl-R) command. That list has nothing to do with "history," or even with nano. It's simply a list of existing files. You can see the same list by Code:
ls -a Go to an empty directory (you may have to mkdir one): Do Code:
nano There is no history! |
Quote:
The file names I want to delete from 'ls -a' either have 'lock' at the beginning of the file name or ".swp' at the end. |
Quote:
Code:
ls -la |
Quote:
~$ ls -la total 548 drwxr-xr-x 20 pell pell 12288 Jul 17 12:17 . drwxr-xr-x 4 root root 4096 Jan 28 2018 .. -rw------- 1 pell pell 44 Jul 17 09:21 .bash_history -rw-rw-r-- 1 pell pell 0 Jun 7 12:14 .bash-history -rw-rw-r-- 1 pell pell 1024 Jul 16 02:07 ..bash_history.swp -rw-r--r-- 1 pell pell 220 Jan 27 2018 .bash_logout -rw-r--r-- 1 pell pell 3771 Jan 27 2018 .bashrc drwxrwxr-x 9 pell pell 4096 Jul 18 00:34 .cache drwxr-xr-x 25 pell pell 4096 Jul 17 12:17 .config drwx------ 3 pell pell 4096 Jan 27 2018 .dbus drwxrwxr-x 3 pell pell 4096 Jul 6 18:46 Desktop drwx------ 2 pell pell 4096 Jul 18 00:59 Downloads drwx------ 3 pell pell 4096 May 2 04:17 .gconf drwx------ 3 pell pell 4096 Jul 4 02:10 .gnome -rw-rw-r-- 1 pell pell 1024 Jul 16 01:50 .g.odt.swp drwx------ 2 pell pell 4096 Jun 4 16:05 .gphoto -rw-rw-r-- 1 pell pell 39 Jul 6 22:29 .gtk-bookmarks -rw-rw-r-- 1 pell pell 1024 Jul 16 02:35 .g.txt.swp drwx------ 2 pell pell 4096 Aug 31 2018 .gvfs -rw-rw-r-- 1 pell pell 0 Jun 13 06:14 .history -rw------- 1 pell pell 279426 Jul 17 12:17 .ICEauthority drwx------ 3 pell pell 4096 Jan 13 2019 .kde drwxrwxr-x 3 pell pell 4096 Jan 27 2018 .local -rw-rw-r-- 1 pell pell 73 Dec 11 2018 .~lock.FILENAME copy.odt# -rw-rw-r-- 1 pell pell 73 Jun 22 06:35 .~lock.NETSTAT -NALP ROOT modified.odt# -rw-rw-r-- 1 pell pell 73 Jul 14 09:40 .~lock.NAMEFILE.odt# -rw-rw-r-- 1 pell pell 73 Jun 2 10:40 .~lock.pub1.odt# -rw-rw-r-- 1 pell pell 0 Jan 21 08:03 .~lock.NAME OF FILE 2020 copy.odt# -rw-rw-r-- 1 pell pell 0 Jun 25 05:42 .~lock.NAME OF FILE.odt# drwx------ 3 pell pell 4096 Nov 29 2018 .mozilla -rw-rw-r-- 1 pell pell 1024 Jun 11 18:57 .NADXXX.odt.swp drwxrwxr-x 2 pell pell 4096 Jun 11 18:56 .nano -rw-rw-r-- 1 pell pell 1024 Jun 11 18:57 .newfile.swp drwx------ 3 pell pell 4096 Jan 27 2018 .pki -rw-r--r-- 1 pell pell 655 Jan 27 2018 .profile dr-------- 3 root root 4096 Jul 13 11:06 .protonvpn-cli drwx------ 2 pell pell 4096 Jun 20 09:57 .ssh -rw-r--r-- 1 pell pell 0 Jan 27 2018 .sudo_as_admin_successful drwxrwxr-x 3 pell pell 4096 Sep 11 2018 .thumbnails drwx------ 5 pell pell 4096 Jul 14 12:09 .thunderbird -rw------- 1 pell pell 664 Jul 12 06:13 .viminfo -rw-r--r-- 1 root root 224 Jul 13 11:06 .wget-hsts -rw-r--r-- 1 pell pell 0 Jan 27 2018 .Xauthority -rw------- 1 pell pell 25179 Jul 18 01:04 .xsession-errors |
Please use [code] tags when posting output, for readability.
The files that start with ~lock and end with .odt are (probably) lock files from OpenOffice. They are very small, and probably don't contain any data. You could cat them to see what in them: Code:
cat .~lock.FILENAME copy.odt# Guessing that this is the home directory of the user pell, yes? Everything else in that list appears to be user-specific "system" files that should NOT be deleted. Frankly, I don't see anything to worry about. Just be aware that the ^T command in nano shows you hidden files. There's a reason that files are created that way: So people don't accidentally remove them ;) Look at what ls -l shows you. Almost nothing, right? |
Quote:
It's not what is 'in' them, it is simply the 'file names' that concerns me. Yes, home directory of user. For the posting, I changed the real file names. I will look for info about deleting hidden files, but maybe you or someone knows how to delete hidden files, soley the office docs. Part of the reason I want to do this is so I can educate someone else as to how to clean up their system as the names of files are revealing, even without any content. |
The lock files indicate the file is open and should normally be deleted when you close the file or exit the program unless something crashes. You can safely delete the lock files using the rm command. Make sure you include the first . In the file name.
In addition the .swp files are vim back up files and can also be safely deleted if desired but are ok. Everything else should be left as is. |
Quote:
|
Quote:
Code:
man rm |
Quote:
|
Quote:
|
Quote:
|
Was there any warning or error messages?
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 01:30 AM. |