Sponsored Content
Operating Systems Solaris Find cmd working in Linux and not in SunSolaris 5.8 Post 302147276 by pressy on Monday 26th of November 2007 06:33:55 AM
Old 11-26-2007
that should do your job:

Code:
root@mp-wst01 # find . -type f -mtime -1 -ls
14045606    8 -rw-------   1 root     root          412 Nov 26 12:19 ./svc/volatile/init.state
264194    4 -rw-r--r--   1 root     sys          3968 Nov 26 00:03 ./motd
272223    1 -rw-------   1 root     root          107 Nov 26 09:06 ./sfw/private/smbpasswd
root@mp-wst01 # find . -type f -mtime -1 -exec ls -lai {} \;
  14045606 -rw-------   1 root     root         412 Nov 26 12:19 ./svc/volatile/init.state
    264194 -rw-r--r--   1 root     sys         3968 Nov 26 00:03 ./motd
    272223 -rw-------   1 root     root         107 Nov 26 09:06 ./sfw/private/smbpasswd
root@mp-wst01 #

don't know what the second table in your "-ls" is, according to the man page, it should be the "size in kilobytes (1024 bytes)"... just look in the ls manpage to find what you want to be displayed...

regards
pressy
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

su cmd not working

HI all, i want to run various Unix cmds thru a java prg. following is the code which i have written. ------------------------------------------------------------------- import java.io.*; class Run { public static void main(String args) { String ls_str; try{ Process cmd_su =... (1 Reply)
Discussion started by: sonbag_pspl
1 Replies

2. Shell Programming and Scripting

Find cmd not working as expected

Hi, i wan to search the file starting with Admin into the directory Output. I am running below command: find /appl/Output -name "Admin*" -prune but this command is going into the sub directories present under output. I do not want to search under sub directories. Any help will be highly... (6 Replies)
Discussion started by: Vishal123
6 Replies

3. Shell Programming and Scripting

using find cmd to find certain files

i have a list of files below: rwxrwxrwx 1 pipe pipe 180 Mar 4 22:47 del_0n_Date -rwxrwxrwx 1 pipe pipe 472 Mar 4 22:58 mail_Check -rw-r--r-- 1 pipe pipe 92 Mar 4 22:58 minfo.txt -rwxrwxrwx 1 pipe pipe 609 Mar 5 05:12... (6 Replies)
Discussion started by: ali560045
6 Replies

4. Shell Programming and Scripting

Find cmd not working correctly in script

I am trying to copy 2 types of files so I can archive them. I tested with a set of commands: touch -t $(date -d "-60 day" +%Y%m%d) WORKDIR/REF find TARGETDIR/ -type f -maxdepth 1 -iname \*.out\* -or -iname \*.log\* ! -newer WORKDIR/REF -exec ls -l {} \; This correctly lists any files in the... (2 Replies)
Discussion started by: prismtx
2 Replies

5. Programming

GUI applications on SunSolaris and RedHat Linux

Hello, I want know about building a product on Sun solaris and Redhat Linux. Product would contain C,C++, Java, UNIX Shell scripts and so on. It will not be a client server programme. Thanks! Shafi (5 Replies)
Discussion started by: shafi2all
5 Replies

6. UNIX for Advanced & Expert Users

Mounting SunSolaris Filesystem on Linux Ubuntu Server

Can someone please help me out here. I have SunSolaris server that has a ridiculous about of space on it. several hundred gigabytes of space. There are lots of partitions on this server that has at least 100Gs on them. I want to mount just one of these partitions on my Linux server so I can... (4 Replies)
Discussion started by: SkySmart
4 Replies

7. Red Hat

how passwd cmd is working

how unix users able to change their password even if they have only read permissions and how backend process will be happening can u explain me which are files need to involved in this process (3 Replies)
Discussion started by: ponmuthu
3 Replies

8. Windows & DOS: Issues & Discussions

Long UNC path not working in CMD.EXE on remote machine

Hi, I am trying to connect to a remote server using Plink tool. Both my local and remote machines are Windows. On remote server, I have OpenSSH server installed. I am able to run commands on remote machine but there is some problem with long UNC path, which I noticed today. For... (3 Replies)
Discussion started by: Technext
3 Replies

9. UNIX for Dummies Questions & Answers

Help with the find cmd

Hello, I'm having a trouble with the find cmd. I would like to find all the java versions on my systems. I have solaris 9 & 10 RHEL and SUSIE. java -version doesn't give all the versions on the server. So I am trying to use the find command to find them all find / -name java I would... (7 Replies)
Discussion started by: bitlord
7 Replies

10. Shell Programming and Scripting

Sendmail cmd for html body and attachment not working

Hi, I am having trouble in sending a mail with html body and attachment (csv file). We don't have uuencode or mutt (not allowed to install as well) The below code is perfectly working for sending the html body alone: export MAILTO=abc@xyz.com export CONTENT="/home/abc/list.html"... (2 Replies)
Discussion started by: close2jay
2 Replies
SYSTEMD-VOLATILE-ROOT.SERVICE(8)			   systemd-volatile-root.service			  SYSTEMD-VOLATILE-ROOT.SERVICE(8)

NAME
systemd-volatile-root.service, systemd-volatile-root - Make the root file system volatile SYNOPSIS
systemd-volatile-root.service /lib/systemd/systemd-volatile-root DESCRIPTION
systemd-volatile-root.service is a service that replaces the root directory with a volatile memory file system ("tmpfs"), mounting the original (non-volatile) /usr inside it read-only. This way, vendor data from /usr is available as usual, but all configuration data in /etc, all state data in /var and all other resources stored directly under the root directory are reset on boot and lost at shutdown, enabling fully stateless systems. This service is only enabled if full volatile mode is selected, for example by specifying "systemd.volatile=yes" on the kernel command line. This service runs only in the initial RAM disk ("initrd"), before the system transitions to the host's root directory. Note that this service is not used if "systemd.volatile=state" is used, as in that mode the root directory is non-volatile. SEE ALSO
systemd(1), systemd-fstab-generator(8), kernel-command-line(7) systemd 237 SYSTEMD-VOLATILE-ROOT.SERVICE(8)
All times are GMT -4. The time now is 06:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy