9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to remove empty files tried below command its remove only zero bytes not empty file which is greater then zero byte.
for x in *
do
if
then
rm $x
fi
done (8 Replies)
Discussion started by: Kalia
8 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Disclosure: I am very new to Unix, but eager to learn..
I've been tasked with transferring logs to a remote server. After I've verified these logs have transferred correctly I have to remove the source files. The naming scheme is:
/directory/2012.05.01
/directory/2012.05.02
..and... (1 Reply)
Discussion started by: JD3V
1 Replies
3. Solaris
# ls -l
total 10
-rw-r--r-- 1 dummy2 other 140 Jun 19 21:37 local.cshrc
-rw-r--r-- 1 dummy2 other 136 Jun 19 21:37 local.cshrc~
-rw-r--r-- 1 dummy2 other 157 Jun 19 21:37 local.login
-rw-r--r-- 1 dummy2 other 178 Jun 19 21:37 local.profile... (6 Replies)
Discussion started by: chidori
6 Replies
4. Shell Programming and Scripting
Hello guys,
I have to create a sh script which return users who have un-sanctioned(forbidden) files in their home directory.
I tried to do:
#!/bin/sh -x
SHADOW_FILE="/etc/shadow"
PASSWORD_FILE="/etc/passwd"
for i in `grep -v '^+' $PASSWORD_FILE | cut -d: -f1,6`
do
username=`echo... (6 Replies)
Discussion started by: catalint
6 Replies
5. UNIX for Advanced & Expert Users
I know i can run cksum <filename> . However, how i can run cksum on all the files and directories in the $HOME ?? (SUNOS) (4 Replies)
Discussion started by: moe458
4 Replies
6. Solaris
Hi,
I am newbie to Solaris and system administration in general, and I have a couple of questions about files in my HOME directory.
When I perform ls -la, I get the following list of files:
drwxr-xr-x 7 XXXYYY staff 17 Aug 24 07:31 .
drwxr-xr-x 7 root root 7... (2 Replies)
Discussion started by: JVerstry
2 Replies
7. UNIX for Dummies Questions & Answers
How would i rmeove all the files in the directory but still keep the directory? (5 Replies)
Discussion started by: JamieMurry
5 Replies
8. Shell Programming and Scripting
Is there a shell command that will allow me to list index files in the /home directory for all users on a server that have been updated within the past 24 hours?
(e.g. index.htm .html .php in/home/user1/public_html /home/user2/public_html /home/user3/public_html etc ) (2 Replies)
Discussion started by: Kain
2 Replies
9. Cybersecurity
Hi everyone,
really strange files keep appearing in my home directory. I have absolutely no idea where they come from and I'm a little concerned that they could come from some kind of malware activity or Firefox exploit. I searched Google for parts of the file names but without a result. The... (6 Replies)
Discussion started by: schallstrom
6 Replies