File disappeared on Ubuntu 18.04 after being renamed [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
After finishing work on a Python file, I renamed it and it disappeared form Desktop, where it was saved. The new name starts with a dot (.).
What happened to it and how can I get it back?

If the name of a file or a directory starts with a dot, Linux considers it hidden. If your file was on the desktop, it’s most likely still there.
Open terminal and run:
cd ~/Desktop
ls -la
You should see your file on the list. Run:
mv old_filename new_filename
to rename it to something that does not start with a dot.

Related

Unable to remove file on Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm currently connected to a remote computer running on Linux and I have a random directory that arose after running one of my C programs. The directory name is of this form: 'H$'204'blahblah''u$'[]'$'234', very strange.
When I try to remove it via rm dir_name the terminal spits out Illegal variable name. The same behavior arises even when I use the -f flag. Then I attempted to remove it by clicking on the directory in the explorer (on vscode) and I get an error saying Error: ENOENT: no such file or directory.
I'm running this on csh shell if that helps.
Update: Running: rm ./H<tab> worked. Thanks to Jamie Guinan!
The magic word is ls -b. It will display non printable characters in an escaped way, so that you will be able to enter them back.

linux execute binary file by full path [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have an executable file ffmpeg in /home/juping/. If I change my working directory to /home/juping/ with the command cd /home/juping/, I can run the executable file ffmpeg by running ./ffmpeg. If I do not change the working directory, can I then still run the executable file by its full path like .//home/juping/ffmpeg? I tried but it doesn't work.
You can execute it by typing
/home/juping/ffmpeg
The ./ point to current directory.

Linux command Cat dont file archive but archive in folder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
When I try to cat in one file, for exemple cert.pem I receive ab error: No such file or directory
These are symbolic links - special files that just contain the path to another file. When you cat them, they essentially redirect to the file they link to. However, as evident by the red color in the ls output, these links are broken - they point to files that do not exist, and thus you get that error when you try to cat them.

I accidentally copied a bash file replacing it with the .bashrc file in my Linux Mint. How am I supposed to retrieve the .bashrc file? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I was trying to place my bash file to the bin, but i copied the contents to the .bashrc file, replacing the contents of the original file. I would like you to help me get back the .bashrc file.
You cannot recover your custom .bashrc. But, if you want to restore it to the default .bashrc, you will find the one copied when creating a new user in:
/etc/skel/.bashrc

How to rename a file name named "." [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have downloaded a large file about 2gigs from remote server but by mistake I gave it name . (dot).
How can I rename it using linux commands ?
I don't think you really have named it .. Or at least, you cannot have done so successfully.
The name . is reserved for the current directory. So either it has been given another name implicitly, or it has been removed/discarded.
Try
find -size +1536M -ls
to find if there is any file with this size, and if so, verify if it can be the file you look for.

Resources