How to tar files to pointed folder of archive? [closed] - bash

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
I want to write my own script for comfortable tar-usage (and also become more experienced in shell), and I am stuck. I want to if user cast my_script pack name.tar file1 file2 - create main folder in archive in pack files to it - how to do that?

Modifying File and Member Names in the GNU tar Manual.

Related

C:/Windows log files write to C:/mylogs.txt [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a little question for you :)
I want to write log files from C:/Windows to C:/mylogs.txt with ms-dos commands. But I don't know any ms-dos commands. How can I do this. Please help me !
If you only pretend to copy the content of Windows logs that are stored in the root folder of C:\Windows, then you could use the Copy command as follows:
Copy /B "%WinDir%\*.log" "C:\mylogs.txt"

how to edit the .profile file to have shortcuts for commands? [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 9 years ago.
Improve this question
im really new to unix, i wanted to learn how to edit a .profile script on OSX lion to help me have shortcut for this directory:
/usr/local/cellar/node_modules/node.io/bin/node.io
i want to be able to run the program like this:
node.io -h
instead of :
/usr/local/cellar/node_modules/node.io/bin/node.io -h
for some reason npm hasn't decided to set paths for me, even though i used -g, so going to do it manually.
export PATH=${PATH}:/usr/local/cellar/node_modules/node.io/bin

Fix $PATH on Mac OS [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
I was trying to add a dir to my path environment but somehow things went wrong and now the terminal wont even recongnize the 'ls' command.
How can I reset or fix this?
Thanks.
Do it from another account, if needed by booting in single user mode: http://support.apple.com/kb/HT1492
This presumes that you are familiar with the basics of Unix shells.

How to create tar.gz archive file in Windows? [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
How to create tar.gz archive of my files in Windows to upload and extract in cPanel?
tar.gz file is just a tar file that's been gzipped. Both tar and gzip are available for windows.
If you like GUIs (Graphical user interface), 7zip can pack with both tar and gzip.

What is the trick with c:\program? [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 13 years ago.
Improve this question
I found that taking any exe file, renaming it to program (without extension) and putting it in C:\ root folder might cause strange things in windows like showing this application when other programs start.
What is it? is it some kind of backdoor?
p.s if you restart windows after doing so - you get a warning about it.
thanks,
Adi Barda
Maybe the fact that some programs don't know how to access C:/Program Files/. because it has a space. Then they are trying to execute C:/program, which in your case turns out to be the file you created.

Resources