Search Results

Search: Posts Made By: Guccio
7,274
Posted By Guccio
Find Hard Link
Goodmorning everybody.

A question:
How can i match if a file is an hard link or not?
2,072
Posted By Guccio
SOLVED
ok, I solved in this way


#! /bin/sh

numFile=0
SIZE=0
find / -type f | while read DIR; do
numFile=$(expr $numFile + 1)
temp=$(stat -size $FILE)
SIZE=$(expr $temp +...
2,072
Posted By Guccio
problem with while...do...done
Goodmorning to everybody

I want to calcolate the relation between the files on the file system and the their used space

I tried:

#! /bin/sh

numFile=$(find / -type f | wc -l)
SIZE=0
du /...
8,918
Posted By Guccio
Ok but the problem is to find user owner most...
Ok but the problem is to find user owner most recently file in the system

If this user is "bin" ?

My solution find it!
8,918
Posted By Guccio
I have solved in this way: find / -type f |...
I have solved in this way:

find / -type f | xargs ls -alrt | cut -f 2 | tail -n 1

The output is:

-rw------- 1 root operator 7111 Jun 18 22:01 /root/.viminfo

How can I obtain from...
8,918
Posted By Guccio
Find user owner of the most recently file in the system
Good evening everybody,
I have to find the user owner of the most recently file in the system
How can I do? :confused:
1,764
Posted By Guccio
Solved
Solved!!! :):):)

My best solution:

#! /bin/sh

if ls toOrder; then rm toOrder; fi
if ls listaCut; then rm listaCut; fi
cut -f 1,3 -d : /etc/passwd >> listaCut
echo "Calcolo in corso..."
...
1,764
Posted By Guccio
Find the user with less number of files in the system
Good morning everybody,

I'm using Minix and I want to find the user with less number of files in the system
I have tried this solution:


#! /bin/sh

indice=0
listaCut=$(cut -f 3 -d :...
8,175
Posted By Guccio
[Solved]
/var/log/ is empty, but now I know

You can find Virtual disk in this order (in Minix, in this case, but similar for other):

Hard Disk 0: /dev/c0d0
Hard Disk 1: /dev/c0d1
Hard Disk 2:...
8,175
Posted By Guccio
dmesg doesn't exist in my version of minix...
dmesg doesn't exist in my version of minix (R3.1.6) :(

---------- Post updated at 06:30 AM ---------- Previous update was at 05:18 AM ----------

This is the settings of Qemu launcher. Is it...
8,175
Posted By Guccio
Virtual disk to create and partition
I have to do this exercise:

Create a virtual disk
Partition this disk
Create File system
Mount File System

I'm using Minix (which runs by Qemu as guest machine) on Linux (Host)

Is...
9,441
Posted By Guccio
wooooooooooooow....you have been so...
wooooooooooooow....you have been so exhaustive....thanks !!! :b::b::b:
9,441
Posted By Guccio
Unmount USB disk
Hi, How can I unmount an usb disk using the command umount?
2,131
Posted By Guccio
Posix
_send and _receive
2,131
Posted By Guccio
Api Posix in Minix
Hi,
I'm using minix and I don't know how to use API POSIX (I've read ipc.h :confused:), someone could help me?
Thank you :)
1,442
Posted By Guccio
Find Usage solved
How can I find the biggest file in a branch?

I tried

find / \*.\* | xargs du | sort -n 1,1 | head 1

but shell do nothings :(

---------- Post updated at 03:07 PM ---------- Previous...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 07:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy