Why can't I change directory [closed] - unix

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to move directory to another directory.
But I can't only change include directory which includes header files for database in C programming.
First, I typed "mv include /usr/include" in terminal so that change directory.
Then Error message shows up which says "rename mysql.h to usr/include Operation not permitted".
I want it for #include .
Could you please help me to find solution?
Best regards,

Don't try to move your include files to the system include directory - it's read only.
Instead, use the command line -I argument to force the compiler to check your directories as well as the system ones e.g.
cc -I/path/to/my/sql/includes mycprogram.c
You'll probably find you also need to use the -L and -l switches at some point soon.

Related

I just installed QT in Linux, and there is something about permission denied [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Image
Please help me, thank you!
you can see the detail in the image.
You are working on an external drive (e.g USB key), I guess as the path start with /media. Some Linux systems prevent any executable to be run from external drives.
Try to change your build directory to a directory on your internal HDD.

Is there a possibility to create SVN folders from Unix [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to automate the process? I don't want to go to svn to create the folders. I want to create them from Unix and later put my scripts and commit them directly from Unix?
Is this possible? I know about the commit process we have svn commit .
I'm very new to these things, so any help is greatly appreciated.
Yes you can do it from command line also
To create
svnadmin create ~/myrepository
To add
svn add PATH...
To commit
svn commit -m "added tuti."
Reference
http://www.civicactions.com/blog/2010/may/25/how_set_svn_repository_7_simple_steps

Which directory is better to install Symfony projects under? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
While trying to get Symfony set up, I've read different things recommending the two 'default' locations for installing Symfony projects:
/var/www/symfony
/usr/local/symfony
I remember reading something about an advantage of setting it up under /var/www - something to do with indexing possibly? Otherwise, the home area would seem 'tidier' to me (plus I assume it means less problems with changing permissions on directories?)...but then I'm still finding my way around Linux!
you may install it wherever you want, you can set suiting permissions with chown and chmod, i tend to this structure
/Projects/Projectx/web/app.php
a common configuration is
/var/www/vhosts/Projectx/web/app.php

copying .tar.gz file while writing it [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is writing a .tar.gz file purely sequential?
When copying a large file, I started compressing it, and while it was compressing, scping it to a different machine. Afterwards I checked the md5sum on both machines, and they did not match. I guess it wasn't the best idea ever to start reading the .tar.gz before it was finished. I supposed that writing that .tar.gz file would only append to the end so that reading it would work out fine.
Does anybody know anything about the mechanics of this? What specifically is happening here?
If you were doing to scp with a simple .tar file, it could work.
tar is a sequential archiving tool mostly designed to be piped to cpio to write on a tape.
But here, you ask tar to first create the archive and then compress it. The compression can happen only after the archive is finished.

removing a file in unix [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
In a UNIX filesystem, if the inode of the root directory is in the memory, what are the sequence of disk operations needed to remove a file in Desktop?
While I am trying to solve a question in textbook, I have seen this question but I could not solve it . Can anyone help me ?
If you know much about Unix, can you tell me what are sequence of disk operation needed for creating a file in Desktop ?
Use rm to remove files in Unix. e.g.,
rm file_to_delete
or better yet if you are uncertain about working in Unix
rm -i file_to_delete
which will prompt with the name of the file to be deleted to confirm the operation.
The file_to_delete can be in the current directory, or in some other directory as long as the path is properly specified.
See rm man page for more information.
As for creating a file, you can create an empty file with the touch command. I.e.,
touch some_file
will create an empty file named some_file. Again, this can be in the current directory, or any directory with the path specified.
For more information see the touch man page.
Your questions wasn't quite clear to me, so if this doesn't answer it please add a comment or (better yet) consider possibly rephrasing your original question or at least the title of your question (removing a file in unix)

Resources