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 9 years ago.
Improve this question
i am a linx beginner.the command options often confused me
e.g.
dash and double dash
let us look at 'man lftp'
mirror [OPTS] [source [target]]
-e, --delete delete files not present at remote site
--delete-first delete old files before transferring new ones
--depth-first descend into subdirectories before transferring files
what is -e?
-e ==? --delete
or
-e ==? --delete --delete-first --depth-first
-e is the same as --delete only.
There do not exist short options corresponding to --delete-first or --depth-first, so those have to be written out in full.
Related
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 months ago.
Improve this question
How to change the filename from file.txt to renaming it to be file_may_20_2020.txt
using mv command?
I have used
mv file file_(`date`).txt
I still don't know how to put a command inside another command
Use either
mv file file_"`date +"%B_%d_%y"`".txt
or
mv file file_"$(date +"%B_%d_%y")".txt
mv file file_"$(date +"%B_%d_%y")".txt
What you put inside the $ is like a template string and its value is placed in the string
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
when I exit my vim, I accidentally typed wq~, and it created my home directory in my other linux directory which I am working on, anyway to remove it?
Quote it
rm '~'
You can also rename it to the name you want:
mv '~' correctname
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.
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 took an examination last week and there was a question asking to create three directories by using one command ; then there was a question asking to delete those directories on a same command. Is that possible ?
You should read man mkdir and man rm
mkdir -pv myfolder/{a..z}/{1..10}
creates 261 folders (myfolder/a/1, myfolder/a/2.... myfolder/z/10)
rm -rf myfolder/
removes them all
Yes this is possible.
Check here and here
Removing directories in one command is also possible. Check here
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 want to iteratively compare two directories, A and B, under Linux using:
diff -r ./A ./B
but I want to ignore some subdirectory names, e.g. a subdirectory called "svn".
How do I do it under Linux?
You can write:
diff -r --exclude=svn ./A ./B