Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)
Hi All
Can anyone help me with the following du querry. I am trying to achieve a total size for all the zipped files in a directory. Using du -k *.gz gets me a file by file list but no handy total at the bottom.
Thanks
Ed (9 Replies)
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Hi Friend,
Need your help.
I have a file which has information of start time and End time . I need to find how much time takes to complete the job . how can I do it in unix command .
Example of Log file :
Start Loading ---Thu Aug 2 17:14:09 EDT 2012
Load... (5 Replies)
I'm using a .txt file filled with domain names for dig to use, the problem is that when i look at the results I get the query time for each individual query, I want to know how long it took in total for all queries to run, how can I achieve this? any help would be greatly appreciated, thank you.... (3 Replies)
Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks
Please post in an adequate technical forum! (3 Replies)
Discussion started by: Sang
3 Replies
LEARN ABOUT PLAN9
chmod
CHMOD(1) General Commands Manual CHMOD(1)NAME
chmod - change mode
SYNOPSIS
chmod mode file ...
DESCRIPTION
The mode of each named file is changed according to mode, which may be an octal number or a symbolic change to the existing mode. A mode
is an octal number constructed from the OR of the following modes.
0400 read by owner
0200 write by owner
0100 execute (search in directory) by owner
0070 read, write, execute (search) by group
0007 read, write, execute (search) by others
A symbolic mode has the form:
[who] op permission
The who part is a combination of the letters u (for user's permissions), g (group) and o (other). The letter a stands for ugo. If who is
omitted, the default is a.
Op can be + to add permission to the file's mode, - to take away permission, and = to assign permission absolutely (all other bits will be
reset).
Permission is any combination of the letters r (read), w (write), x (execute), a (append only), and l (exclusive access).
Only the owner of a file or the group leader of its group may change the file's mode.
SOURCE
/sys/src/cmd/chmod.c
SEE ALSO ls(1), stat(2), stat(5)CHMOD(1)