3
votes
2answers
168 views

Redhat Linux: How to know my system configuration?

I am using Red Hat Enterprise Linux Server release 5.9 (Tikanga). For installation of any application, it is very important to know the system configuration, is it 32 bit or 64 bit system, Installed ...
1
vote
0answers
65 views

Kill Command in linux using bash script [migrated]

I have a bash script abcd.sh,in which I want to kill this command(/usr/local/bin/wrun 'uptime;ps -elf|grep httpd|wc -l;free -m;mpstat') after 5 sec but in this script it kill sleep command after 5 ...
1
vote
2answers
81 views

How to get SCP execution time in milliseconds?

I have a script in which i am reading source and destination IP address from a csv file and recording the time in milliseconds it is taking to copy the file from source to destination (using scp). ...
0
votes
3answers
53 views

Remove extra line break from a variable

I am an absolute newbie to the *ix ,so if my question is dumb please bear with me. I am writing a script where I am trying to export some variable , and after exporting my variable when I am printing, ...
2
votes
1answer
66 views

How does one determine the amount of space allocated to their command line?

How would one go about determining the amount of space allocated to their system for command lines. Is there anything else I need to be concerned with?
1
vote
1answer
56 views

Linux - How to open a console and display command results on startup?

I have a Linux server with a screen always displaying the end of a very usefull file. How could I automatically enter a shell and display the end of this file when the server starts? I'd like to do ...
0
votes
1answer
140 views

Unable to execute command in the Linux with an user

Two scenarios here. Sudo rights are given for a particular group. a. A new user is created and is assigned to the group. b. Using this user, when we execute commands via shell script it is unable to ...
0
votes
2answers
230 views

I used the move command and all files disappeared [duplicate]

I was moving all data to another folder and made 1 mistake and run this commmand mv * /* all files have disappeared now. How can I find them? Or are they deleted?
2
votes
3answers
570 views

Difference between 'ifconfig' and 'ip' commands

I read some articles/tutorials on 'ifconfig' command, most of them included a common statement - "ifconfig is deprecated by ip command" and suggested to learn ip command. But none of them ...
0
votes
4answers
1k views

How to create custom commands in Unix/Linux? [closed]

I'm a newbie in Unix/Linux environment. Can anyone guide me to create custom commands in Unix/Linux. Thanks in advance
-1
votes
1answer
99 views

can't view `split` output files with cat [closed]

File a.txt contains: 1 one 2 two 3 three 4 four 5 five 6 six Then the command: split -2 a.txt output_ yields as output three new files output_aa, output_ab, output_ac When I type: cat output_aa I ...
8
votes
0answers
206 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
181 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
978 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
705 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
146 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 ...
5
votes
3answers
2k 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 ...
5
votes
6answers
11k 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
651 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
459 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 ...
18
votes
3answers
741 views

Which are the standard commands available in every Linux based distribution?

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: ...
2
votes
3answers
2k 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/'