Few general unix qns..URGENT!!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Few general unix qns..URGENT!!
# 1  
Old 08-08-2008
Few general unix qns..URGENT!!

hey guys,
I have a few general qns on unix, so I'd appreciate quick responses.
1. How do u read a file line by line and display its contents using KSH?
2. How to kill a process using only the name?
3. How to create an empty file with 1MB memory size?
4. How to append some content to an existing file using only sed command?
# 2  
Old 08-08-2008
have you tried using google? This sounds like some kind of homework. Please read the rules about duplicate posting too.

Some commands to lookup:

cat
more
less
kill
sed

On linux you can use killall to kill a process by name. Unix (ksh) command killall kills all active processes, used by shutdown command.

Last edited by Ikon; 08-08-2008 at 06:20 PM..
# 3  
Old 08-08-2008
Smells like homework.
Looks like homework.
Feels like homework.
Reads like homework.

It must be homework.

And as a personal remark: Please skip the "URGENT", kid. Most of us are hard working professionals. We have schedules to meet, work to do, families to sustain, kids to raise and only then find time to answer questions. If you want to have your questions answered immediately call 1-800-HIRE-A-UNIX-PROFESSIONAL-FOR-GOOD-MONEY.

-closed-

bakunin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

UNIX.COM General Data Privacy Regulations (GDPR) Compliance - For Member Comments

Dear All, Please read version Version 0.81 28 May 2018 of our draft UNIX.COM General Data Privacy Regulations (GDPR) Compliance. If you have any data privacy questions or concerns, or would like to see us address any other data privacy topic related to your personal data at UNIX.COM,... (12 Replies)
Discussion started by: Neo
12 Replies

2. UNIX for Dummies Questions & Answers

General Terminology related to the UNIX System

Hello, I am relatively new to the world of programming in general and to the UNIX System in particular. I have a bunch of theoretical questions related to terminology which I have come across in my coursebooks. I hope I post my question at the right place. Any help would be warmly welcome! ... (1 Reply)
Discussion started by: feliks0
1 Replies

3. UNIX for Dummies Questions & Answers

General Unix Error Logging?

Yesterday evening my server appeared to fall over. I couldn't copy (scp) files to it, and I couldn't SSH to it either. Every time I tried, it just gave me this message: Read from remote host <IP ADDRESS>: Connection reset by peer Connection to <IP ADDRESS> closed. I got in this morning, and... (4 Replies)
Discussion started by: Dave Stockdale
4 Replies

4. Solaris

qns about swap space

hi everyone there is some qns i would like to ask abt swap space. lets say i have a host computer which is running solaris and has 18 disks which adds up to 9.9tb. the qns i would like to ask is that does all the 18 disks need to have a swap space partition or do i just create a swap space... (3 Replies)
Discussion started by: redemption
3 Replies

5. Shell Programming and Scripting

URGENT!! few unix/scrpting/ksh qns

hey guys, I have a few general qns, so I'd appreciate quick responses. 1. How do u read a file line by line and display its contents using KSH? 2. How to kill a process using only the name? 3. How to create an empty file with 1MB memory size? 4. How to append some content to an existing... (3 Replies)
Discussion started by: sasuke_uchiha
3 Replies

6. Shell Programming and Scripting

General UNIX Query

Hi all, I am having putty in my system.But I dont have access to any UNIX Servers.Is there any default or common UNIX Server so that anyone can access and be familiar with UNIX and Shell scripting. I want to work and practice in UNIX..Thats why I am asking this question. Kindly give me... (2 Replies)
Discussion started by: dave_nithis
2 Replies

7. HP-UX

HP Unix | Urgent Need Help

Hi, I'm new to unix and i'm using HP Unix I tried the following and getting error like 1. $sam sh:sam not found 2.Also i want to monitor/trace other user's command what they are using when am in to the same server Appreciate if any one help on this (4 Replies)
Discussion started by: msgobinathan
4 Replies

8. Shell Programming and Scripting

[urgent need help] unix script....

hi experts, i'm new in scripting unix i have some problem with my script below is shown my script : #!/bin/sh BASEDIR=/export/home/mapadm BINDIR=$BASEDIR/bin LOGDIR=$BASEDIR/log TDRDIR=$LOGDIR/TDR BACKUPDIR=/data/log export BASEDIR BINDIR LOGDIR TDRDIR BACKUPDIR YEAR=`date '+%Y'`... (21 Replies)
Discussion started by: bucci
21 Replies

9. Shell Programming and Scripting

Urgent Need your help --New to Unix

I am getting data like this in a flat file seg No Test A4 0000002595, A2, test ,Datatest Test, A1 0000002595, A1,SELF , Employed,1,2,3,400.50 Test, A2 0000002595, A2, test ,Data,eurp Test, A3 0000002595, A2, test ,Data I need to produce a flat file so that output file... (0 Replies)
Discussion started by: nikeng
0 Replies

10. UNIX for Advanced & Expert Users

General Unix Questions !!

1. How do we know what is my machine name and what is its IP address? (in Solaris) 2. If i want to know the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris) then what command i have to look. (5 Replies)
Discussion started by: dreams5617
5 Replies
Login or Register to Ask a Question