Tagged Questions
8
votes
2answers
183 views
how to get exit status from the command before the last [duplicate]
I have solaris machine ( solaris 10 )
please Look on the following simple commands (haconf -makerw | grep -iq "Cluster already writable")
# haconf -makerw
VCS WARNING V-16-1-10364 Cluster ...
1
vote
2answers
85 views
Is it better to pass all files to mv or to run a bunch of mv processes in parallel?
I have three ways of running mv. First:
mv /db/dbfile1 /db/dbfile2 /db/dbfile3 /usb_storage/
and second:
mv /db/dbfile1 /usb_storage/ &
mv /db/dbfile2 /usb_storage/ &
mv /db/dbfile3 ...
2
votes
3answers
136 views
Why does Firefox refuse to die despite killing it with pkill -9?
I am issuing the following command to kill Firefox on my Red Hat Linux box:
[subhrcho@slc04lyo ~]$ pkill -9 -f firefox
[subhrcho@slc04lyo ~]$
However, when I try to invoke Firefox through ...
6
votes
3answers
394 views
Difference between commands in bash script and commands in terminal
Are there any differences between commands that you type into the terminal and commands you include in a script?
1
vote
1answer
100 views
What does - mean with association to Linux files and directories [duplicate]
Possible Duplicate:
What does “--” (double-dash) mean?
What does '--' (two dashes) mean with association to Linux files and directories.
I've found something else but not too sure if it is ...
4
votes
2answers
323 views
Why doesn't ln -s tell that it fails when creating a symlink to an existing symlinked directory?
When running (on linux different ubuntu variations):
>ln -s dir_1 symlink_dir
>ln -s dir_2 symlink_dir
It fails without telling that it fails. But if you do the same thing on a file instead ...
4
votes
6answers
490 views
How to move all files and folders via mv command
How can I move all files and folders from one directory to another via mv command?
3
votes
1answer
346 views
How to check will my computer is going to reboot(or shutting down)?
When I send a reboot command(or shutdown) command to a Linux machine does it keeps that messages at somewhere and can I query it. I.e. I will send a reboot command and after that I will run another ...
4
votes
3answers
213 views
Linux Rename File Beginning with “--” [duplicate]
Possible Duplicate:
How do I delete a file whose name begins with “-” (hyphen a.k.a. dash or minus)?
This is an awkward one, I have received some files from a windows machine ...
16
votes
3answers
572 views
Which are the standard commands available in every Linux system?
I would like to know which are the standard commands available in every Linux system.
For example if you get a debian/ubuntu/redhat/suse/arch/slackware etc, you will always find there commands like:
...
0
votes
3answers
497 views
What is the purpose of -e in sed command?
I can't find any documentation about the sed -e switch, for simple replace, do I need it?
e.g.
sed 's/foo/bar/'
VS
sed -e 's/foo/bar/'