Not seeing an etc folder on my Ubuntu Server [closed] - unix

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
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.
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.
Improve this question
I've got an ASW Host running Ubuntu and I don't see an etc folder such as what is referenced in these docs.
Why is that?
I also don't see a /usr/local/bin folder
When I do an ls -a I get:

You are probably in /home/ubuntu.
Type
sudo ls -a /etc

Your currently in your home folder. You need to do ls -l / or first cd / and than ls -l. The /-folder is the root folder of a Linux system.
More information: Linux file system structure

You are looking in your HOME directory.
Try to look in /etc !

Related

Can I get emplacement of `sources.list` in cmd on a Modified UNIX? [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 would like to know how can I get the path to sources.list on a modified UNIX which have apt and other base packages on it , like gpg and sudo. Does apt can identify the path to sources.list ?
He is using it , so he should be able to locate it, right ?
I don't know if this is the best way, but apt-config dump will show all of apt's configuration variables. On my system, the Dir::Etc variable gives the directory where the file is located, and Dir::Etc::sourcelist gives its name.
You can also read in the apt-config man page about the shell option which may be more useful for processing this data in a program.

How can I search ~/Library with the command find on my mac? [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 want to find all the files a piece of software has left in my system.
In the terminal I type:
$ find /Users -name software -print
And every time find tries to look into a folder within the Library directory, Terminal returns "operation not permitted".
So I tried:
$ sudo find /Users -name software -print
Same result
So I finally enabled super user, logged in with command su, entered my command: same result.
1 - I do not understand why even the super user is not allowed to search the library.
2 - what is the work around?
Thanks for your help
I have found the answer.
Terminal needs to be added in the System Preferences/Security and Privacy/ full disk access!

How do I untar a file skipping the beginning of the directory structure [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 7 years ago.
Improve this question
I created tar archives with an absolute path to save the files.
/home/mydir/dir1/dir2/dir3/file1.dat
/home/mydir/dir1/dir2/dir3/file2.dat
/home/mydir/dir1/dir2/dir3/file3.dat
I would like to untar these archives skipping the beginning of the directory structure /home/mydir/dir1. My files should be restored in any directory with this structure :
dir2/dir3/file1.dat
dir2/dir3/file2.dat
dir2/dir3/file3.dat
How can I do this with the tar command or another way ?
tar -xf /for/untar/your/filename.extension --strip=3 path/to/which/you/wish/to/extract

How to change permission on a file in unix? [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
im running the oracle vm box but truing the chmod 7000 on a file ,But it;s not working.Permissions a re not applying.
Need help?
try:
chmod 700 file.txt
7 - user rwx
0 - group none
0 - others none
chmod 7000 file should be setting setuid setgid and the sticky bit. (Equivalent to chmod ug+s,+t file). Are you sure you don't mean chmod 0700? This can help: http://permissions-calculator.org/symbolic/

unix group write permission not working as expected [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
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.
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.
Improve this question
Sorry for this very basic question but I cannot find any answer.
I've got a user cldprod which is in primary group 'cldprod' and in secondary group 'jboss'
I've got another user jboss which is in primary group 'jboss'.
'cldprod' user cannot removes file with those permissions :
-rw-rw-r-- 1 jboss jboss xxxxxx
rm: cannot remove `xxxxx': Permission denied
I don't understand why (as 'cldprod' is in group 'jboss' and 'jboss' has write permission on the file).
My /etc/passwd :
cldprod:x:500:501:xxxxxx
jboss:x:501:502:xxxxxx
My /etc/group :
cldprod:x:501:
jboss:x:502:cldprod
My infos :
$ uname -a
Linux ip-xxxxx xxxxxx.amzn1.x86_64 #1 SMP Mon May 6 18:04:41 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
To remove a file (directory entry), you need write permissions on the directory containing it, not the file itself.
Write permission on the file only allows you to modify the content of the file and its metadata, such as permissions.

Resources