How to test commands in files?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to test commands in files?
# 1  
Old 11-17-2011
Question How to test commands in files?

Hi.
I'm new here, and I'm trying to enter this big world of unix.

I would like to know how can I install a SSH server for free so I can teste some things, like make a file, change files, rename and things like this?

If is there any easy way to test all commands it would be interesting too.

Thanks
# 2  
Old 11-17-2011
Install an ssh server in what?

Most Linux comes with an ssh server installed already.
# 3  
Old 11-17-2011
Openssh is free open source software, but, it seems to me that you really want a unix shell environment.
This site Puppy Linux News has several Linux Live cds that you can download, and boot without modifying your hard drive.
# 4  
Old 11-17-2011
Hi.
Yes what I want is a unix shell environment, so I can do some tests of data manipulating and after that, running some shell scripts.

So as you say, the only thing I must do is going to that web site download one of those ISO and reboot my pc with one of those, right?

Thanks
# 5  
Old 11-17-2011
Yes, you can burn the ISO as a CD image which you can boot on your computer.

You can also run a Linux or UNIX operating system inside virtualbox or other software like it.

Some distributions can be installed and booted from an external hard drive.

Some people use cygwin to get a UNIX-like shell on their system, but cygwin's a poor imitation of UNIX because, running natively inside the Windows OS, it must still obey all Windows limits and idiosyncrasies -- case-insensitive filenames; either no symbolic links or a very difficult time using symbolic links; named pipes that often don't work; no hard links at all..

I would definitely not recommend dual-booting, installing another OS beside your main one on your main computer, to someone new to UNIX. If you make one mistake in the setup process, you've ruined two operating systems...

Last edited by Corona688; 11-17-2011 at 01:54 PM..
# 6  
Old 11-17-2011
Hi Corona688,

Yes I would like to have any other way of doing this too. Installing something I have never worked before could be the final of it.
So if I understand, is there other way, by build in a virtual machine, is that right?

Thanks
# 7  
Old 11-17-2011
A program like virtualPC acts just like an independent computer of its own, which you can boot Linux install CD's in and install Linux the same way you would if it was going on an entire computer.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run sequential test files

I have c program that I run like this: ./a.out t1 And my test files look like this all the way up to 100: t1 t2 t3 Is there a way to run this more efficiently so I don't have to hit up and change the number every time? (4 Replies)
Discussion started by: cokedude
4 Replies

2. Shell Programming and Scripting

Find files and execute commands on these files (advanced)

So, I need to find a bunch of files and delete them (this example, but sometimes I need it for something else) and my trusty go-to command has always been: find . -type f -name '*file*' | xargs -I## rm '##' Works wonders... But: touch file\ file\'.txt touch file.txt touch file\ file.txt... (6 Replies)
Discussion started by: Mr.Glaurung
6 Replies

3. Shell Programming and Scripting

File test commands with variable file name

Hi there I have the following code SDFFILE_SRC=$BACKEND_DIR/$SDFFILE_MIN_tar SDFFILE_DST=$SIM_DIR/$SDFFILE_MIN if ] .... .... .... fi Simply I need to check if $SDFFILE_SRC isa newer than $SDFFILE_DST or $SDFFILE_DST does not exist then execute the IF Body. Although the the... (2 Replies)
Discussion started by: aelhosiny
2 Replies

4. Programming

How to test many texts generated by many commands ?

Hello, I have hundreds of text files to be tested.They are generated by many commands. I should check whether a word in specific position is right, or whether a word in file A is equal to a word in file B. All the file are not the same. I decide to use shell to test every files, so I had to write... (7 Replies)
Discussion started by: 915086731
7 Replies

5. Shell Programming and Scripting

test for existence of files with same extension

Hi, I am checking for existence of files with the same extensions #! /usr/bin/ksh txtfiles = '*.txt' if then cp ${dirpath}/${txtfiles} ${dir2path} fi I am getting the following error line 5: [: too many arguments for the if check condition (4 Replies)
Discussion started by: chen.sara
4 Replies

6. Shell Programming and Scripting

Test for existence of files

Hello, Can you please help me to see if log files exist in a directory? I need to scan logs in different directories, so I am using an array to change dynamically. I need help in the if test statement dir=/logs/MSD dir=/logs/UPD countA=1 while (( countA <= ${#dir } )) do cd ${dir}... (1 Reply)
Discussion started by: drbiloukos
1 Replies

7. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

8. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

9. UNIX for Advanced & Expert Users

test if there are files in directory

Hi, I am trying to test if there are files in a directory and if theres i want to get a list. Any ideas? Thanks in advance (1 Reply)
Discussion started by: RSAM2007
1 Replies

10. UNIX for Dummies Questions & Answers

How to test for files with a particular extension.

Hi!!, Is there any way on Ksh to test the files having a particular Extension? My program looks something like: for i in *$1* do if "$i" != files with ext of .Z then compress -f $i fi done Any suggestions??? :):) (1 Reply)
Discussion started by: jyotipg
1 Replies
Login or Register to Ask a Question