4
nested if-else shell scripting errorview story

http://www.linuxquestions.org – hello,friends/sir this is ranvir, i'm try to run simple shell script but it showing some error, thanks $ vi nestedif.sh osch=0 echo "1. Unix (Sun Os)" echo "2. Linux (Red Hat)" echo -n "Select your os choice [1 or 2]? " read osch if [ $osch -eq 1 ] ; then echo "You Pick up Unix (Sun Os)" else #### nested if i.e. (HowTos)

6
writing 0xFF with the dd commandview story

http://www.linuxquestions.org – I'm trying to write a 100MB file for example all with 0xFF so in the hex editor it should look like "FF FF FF FF FF FF" etc. I know you can write a 0x00 with this line: Code: dd if=/dev/zero of=myfile bs=1M count=100 But how to do 0xFF or another character? I want to use the 'dd' command because with the 'bs=1M' argument it is 100 times faster than any other shell command I've seen. (HowTos)

4
Links 16/11/2010: Debian 6.0 is Coming, OpenRespect.org Criticisedview story

http://techrights.org – Contents GNU/Linux Distributions Devices/Embedded Free Software/Open Source Leftovers Clip of the Day GNU/Linux Desktop Windows Legacy Apps vs. Linux Desktop Adopters? In a previous article on Linux-Window desktop competition, I shared my thoughts on why desktop Linux shouldn’t focus on competing with Windows. (General)

4
how to create a xml file from path of the fileview story

http://nixcraft.com – Hello friends, I am new to bash shell scripting. I am creating a xml testlist from the path of the file (executable file). The path of the executable file looks like this /linux_test_file/testcases/kernel/controllers/freezer/vfork /linux_test_file/testcases/kernel/controllers/freezer/fork_exec_loop /linux_test_file/testcases/kernel/controllers/io-throttle/iobw /linux_test_file/testcases/networ (HowTos)

4
Data recovery help?view story

http://www.linuxquestions.org – I was trying to set up a partition on my netbook's hard drive, and foolishly forgot to backup my home folder. Now, Ubuntu (10.04, btw) won't boot. (HowTos)

6
using shell to create a default web page for new usersview story

http://www.linuxquestions.org – I came across this script a while back that i found. What i want to do is edit the script to create a default web page in /var/www/html when a new user is added through the script. What the script does now is adds a user and sets a password for the user. What possible way (either through a combination of python or c or some other language) could i add to the shell script to do this? (HowTos)

4
[ubuntu] Wireless worked before but it's not anymoreview story

http://ubuntuforums.org – Hello, I have Windows 7 professional installed. Then I I installed ubuntu 10.10. So now I have both in different partitions. My computer used to connect to wifi fine. But since last 4 days, it's not. So i read somewhere to type the following commands. I am posting the returns here. (HowTos)

4
LXer: 13 Features of Regular Expressionsview story

http://www.linuxquestions.org – Published at LXer: Regular expressions provide a robust set of features in the Bash Shell. This article lists 13 features you need to know about regex. Read More... (HowTos)

4
SELinux: how to list all Type Enforcement contexts that exist on the system?view story

http://www.linuxquestions.org – A quote from RHCE exam prep book by A. Ghori: Quote: Allow only BIND daemon to be able to read named.conf by altering the SELinux file context to named_conf_t ...: Code: chcon -t named_conf_t named.conf That all being well and good, what if I forget it is named_conf_t and find myself guessing, what on Earth this parameter should be? named_t? (HowTos)

4
LXer: Bash Shell Variables an Introductionview story

http://www.linuxquestions.org – Published at LXer: The Bash Shell provides the ability to create symbolic names which the shell stores in memory and which can be assigned values so that it can be used repeatedly in a shell script. Read More... (HowTos)