0
votes
1answer
123 views

Syntax to create a file list

When I try to create a list of the files on a CD and to save it as a text file, something must be wrong with my syntax. Entering the command: gz@gcomputer:/media$ ls -aRl1 >> ...
3
votes
1answer
2k views

Matching a number sequence in grep

So I'm trying to match a year number sequence with grep and this should be easy. I'm just a bit stumped that my simplistic regex isn't working. What I'm doing is running a tool which archives some ...
1
vote
2answers
144 views

Change only the user of a file

I have a textfile with name negin.txt in /home and did the following: Right click → Properties → Permissions → Advanced Permissions → Add Entry → Named User user:wwwrun Is ...
5
votes
4answers
4k views

Explanation of command to uppercase the first letter of a filename

I'm trying to learn to rename files with the command line, and after browsing around a lot of pages I finally found a command that uppercases the first letter of a file, but the problem is that I want ...
3
votes
2answers
7k views

How can I sort ls by owner and group?

How can I list directories with ls and sort them by their owner and group?
3
votes
2answers
3k views

Syntax for find on Mac OS X

I have a project directory that contains source code and subdirectories of source code. I want to use the Unix program find to search recursively for the names of files of certain extensions. The ...
1
vote
3answers
1k views

What is the meaning of pri=42

When mounting a swap partition on Linux, what does the mount option pri=42 mean? fstab: /dev/hda1 swap swap pri=42 0 0