I run the following command at uni to my user account
chmod -R 700 *
Then, I run
chmod -R 755 public_html
My homepage remains to be "Forbidden" when I browse to it.
The permissions of my user account
4 drwx------ 5 Newbie staff 4096 2008-12-19 12:39 Desktop
4 drwx------ 10 Newbie staff 4096 2009-04-16 02:28 Documents
4 drwx----...
I was asked to teach UNIX to a group of people in my company who probably don't know much about UNIX with total Windows background. Help me decide the Course Contents. I don't want to go in and teach them a set of commands. I want it to be more on the lines of the UNIX architecture, file system, pipes, how everything are files, process c...
operating systems related question dunno if i can ask here
but thought i would get proper explanation in this forum
when a process be exec in user context... wont the higher priority precesses in kernel context blocking the process in user context all the time...
it is hazy for me... the concepts
......
...
I'm performing this grep:
grep -l "Validation failed" *.dbg
This returns a file listing. However, I'm most interested in the times modified of these files.
What would the proper command be?
Edit: the argument in the title was wrong.
...
I'm developing a program which executes a program using execvp. It needs to capture the results of the child process and parse them in the main process. It seems there is a way, using named pipes, and duping. I'm trying to hunt down a good example of this, but so far no luck. If anyone has any pointers, links and/or suggestions about thi...
I want to be able to tell if a command exists on any POSIX system from a shell script.
On Linux, I can do the following:
if which <command>; then
...snip...
fi
However, Solaris and MacOS which do not give an exit failure code when the command does not exist, they just print an error message to STDOUT.
Also, I recently discovered ...
I'm trying to get my website under version control. I work directly on the server with ExpanDrive, which uses MacFUSE to mount the SFTP connection as a local volume which I can access with the terminal and other local applications.
Anyway, everything goes smoothly until I try to commit, when I receive this message:
fatal: exec .git/hoo...
I did some havoc on my computer, when I played with the commands suggested by vezult [1]. I expected the one-liner to ask file-names to be removed. However, it immediately removed my files in a folder:
> find ./ -type f | while read x; do rm "$x"; done
I expected it to wait for my typing of stdin:s [2]. I cannot understand its action....
Duplicate of prepend to a file one liner shell? .
I trying to put my paste to the very first line without opening an editor similarly as but for the reverse direction
echo Masi >> file
How can you put data to the first line in terminal without opening an editor?
For instance,
I have a file
M
M
M
I want to put Masi to my file suc...
I tried to put the line to /etc/hosts:
IP math.com mathworld.com
where IP was supposed to be the IP of http://mathworld.wolfram.com/classroom/. I pinged the site, and I realised that I must direct traffic with some other tools:
ping mathworld.wolfram.com/
ping: cannot resolve mathworld.wolfram.com/: Unknown host
So the q...
I am trying to find the directory called macports by Find.
I do not know where it is in my computer.
I have tried unsuccessfully
find --mindepth 777 macports
How can you find the directory?
...
Manual states that the tee is a "pipe fitting"-tool. The cases [1] confuse me:
1. case
echo "foo bar" | sudo tee -a /path/to/some/file
2. case
:w !sudo tee %
It is hard to understand the logic of tee from the cases. How does the tee work?
...
I found the text browser w3m which is the best so far in my opinion.
However, it is main problem is Javascript.
I cannot see comments at all in Stackoverflow when I use it.
I am not sure what is the restriction in letting Javascript to be in terminal.
How can you enable at least some of JavaScript for Terminal such that comments are v...
In normal cases, I suppose everyone only uses the "less" command to read the content of plain text files.
But on Gentoo, it seems that the less command line is a little more powerful than the one I use on other Linux distributions, or Cygwin, Mac OS X... the less command on Gentoo is able to list the content of compressed archive files,...
Is it possible to "alias" all commands to append --color? Or instead have it automatically activated for every program that supports it?
...
Does the fork system call allocate a new user structure for the child process?It does allocate new process structure for the child process.
...
Is it possible to have an SSH session use all your local configuration files (.bash_profile, .vimrc, etc..) on login? That way you would have the same configuration for, say, editing files in vim in the remote session.
...
For example, a process waiting for
disk I/O to complete will sleep on the
address of the buffer header
corresponding to the data being
transferred. When the interrupt
routine for the disk driver notes that
the transfer is complete, it calls
wakeup on the buffer header. The
interrupt uses the kernel stack for
whate...
From FreeBSD UNIX (Galvin),
Suppose data are written to a file in transfer sizes of 1-KB bytes, and the
block and fragment sizes of the file system are 4 KB and 512 bytes. The file
system will allocate a 1-KB fragment to contain the data from the first transfer.
The next transfer will cause a new 2-KB fragment to be allocated. ...
I want to have summary of difference between two files. Expected output is count of new, deleted and changed lines. Does diff readily provides such output? If not is there any script/utility available which helps in getting the summary.
...