02-19-2015
Could it be due to you removing files from absolute paths but copy to/from relative paths? So results depend on what your $PWD is?
10 More Discussions You Might Find Interesting
1. HP-UX
Good Day
I mistakely renamed the dld.sl file in the /usr/lib directory. When i try to ls/ftp into the box i get this error :eek:
crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000002
I have tried to rename it back from the renamed file to the original file name, but it gives me the... (2 Replies)
Discussion started by: shawnbishop
2 Replies
2. UNIX for Dummies Questions & Answers
Command works but not in SH
At terminal if i type:
scp test.tar.gz user1@server2:/home/user
Everything run smoothly (keyed, no password need)
At script , test.sh
#!/bin/sh
scp test.tar.gz user1@server2:/home/user
Nothing happen and clue ? ? ? ? ? (3 Replies)
Discussion started by: cititester
3 Replies
3. UNIX for Dummies Questions & Answers
at command does not work with graphic programs like firefox, evolution, etc
It works with other commands
for example:
at now
shutdown -h now
OK
but
at now
firefox
does not work
Anyone knows if its possible to open a firefox window at a scheduled time?
Thanks
Jose (0 Replies)
Discussion started by: otilesoj
0 Replies
4. Shell Programming and Scripting
I am trying to copy a folder which contains a list of C executables.
It takes 2 mins for completion,where as the entire script takes only 3 more minutes for other process.
Is there a way to copy the folder faster so that the performance of the script will improve? (2 Replies)
Discussion started by: prasperl
2 Replies
5. UNIX for Dummies Questions & Answers
How can we copy a command string from a previous command line and paste it into the cursor position on the current command line? I know that ^c will not work as the shell will interpret as an interrupt signal.
Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies
6. Shell Programming and Scripting
Hi
I have a problem with scp command :
I try to copy a list of files from source to destination, it works fine but if there is a directory not existing on destination, it doesn't automatic create.
Syntax :
scp -rp /<PATH>/<NEW_DIR>/<FILE> <USER_DEST>@<HOST_DEST>:<PATH>/<NEW_DIR>/<FILE>... (5 Replies)
Discussion started by: madmat
5 Replies
7. Shell Programming and Scripting
need help, trying make a command where the user presses any keys and it will go to the home page, however it doesnt work, why ?
echo -p "press any key to return to main menu" menu
if ]; then
echo -p "\n"
home
fi (5 Replies)
Discussion started by: bassmasta1
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I want to copy a file/directory ( recursively , if needed) and if destination directory does not exist create it ( with parent directory, if needed).
funcopy () {
if ; then
echo "$2 exists , copying files"
cp -r "$1" "$2"
else
echo "Directory does not exist;Create directory"
mkdir... (1 Reply)
Discussion started by: greet_sed
1 Replies
9. UNIX for Dummies Questions & Answers
Hello.
I have a question as to why my grep command does not seem to be working.
grep -c '^?*' ~
grep -c '^.*' ~
I wanted to count the number of files starting with the letter K and have some letters after that. I have such files in my home directory. However, the output is 0. So, I have no... (2 Replies)
Discussion started by: FUTURE_EINSTEIN
2 Replies
10. Programming
I want copy Files:
But cp don't work:
shell_exec("cp ".$pfad." ".$genzone);
shell_exec("cp ../Chrysanthemum.jpg ../test");
Whats wrong? (3 Replies)
Discussion started by: Linuxmann
3 Replies
LEARN ABOUT MINIX
systemd-path
SYSTEMD-PATH(1) systemd-path SYSTEMD-PATH(1)
NAME
systemd-path - List and query system and user paths
SYNOPSIS
systemd-path [OPTIONS...] [NAME...]
DESCRIPTION
systemd-path may be used to query system and user paths. The tool makes many of the paths described in file-hierarchy(7) available for
querying.
When invoked without arguments, a list of known paths and their current values is shown. When at least one argument is passed, the path
with this name is queried and its value shown. The variables whose name begins with "search-" do not refer to individual paths, but instead
to a list of colon-separated search paths, in their order of precedence.
OPTIONS
The following options are understood:
--suffix=
The printed paths are suffixed by the specified string.
-h, --help
Print a short help text and exit.
--version
Print a short version string and exit.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
SEE ALSO
systemd(1), file-hierarchy(7)
systemd 237 SYSTEMD-PATH(1)