[scott@kvm ~]$ touch what what~
[scott@kvm ~]$ ls -li what*
23655 -rw-rw-r--. 1 scott scott 0 Sep 6 17:51 what
23477 -rw-rw-r--. 1 scott scott 0 Sep 6 17:51 what~
~ is not so much a "home directory symbol" as it is a tilde that just happens to also serve that purpose.
Note: Moved thread from Red Hat forum
Oh thanks for the clarification. But why would there be the presence of 'what~' after I created the txt file 'what' ?
Hi,
Consider a flat file abc.conf contains some rows. Each row contains the directory name with full path. now I want to find a particular file in every directory which are mentioned in the abc.conf file. How it can be done through unix shell script. (2 Replies)
Hi,
If I have a directory full of say 100 random files, and I would like to organize them, for example: FILE001, FILE002, FILE003, FILE004, etc.
How would I do this from Terminal, instead of manually changing each file? I'm using Mac OS X, if that makes a difference.
Thank you in advance... (8 Replies)
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)
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
I am having n files in a directory i want to read all the file names from the script file .It is better if any one provide a sample script.
Elaborating the scenario:
i am having n number of sql files in a directory i am running all the sql files from a single script.
sqlplus... (4 Replies)
hi,
i have written a shell script inside which i am using a pgp command to encrypt a file. when pgp command is run , there is a /.pgp/pgp.cfg file in my home directory.
i logged into the unix server with my userid, when i run the script from the command prompt, pgp is successful, since i am... (5 Replies)
Hi All,
Can any one help me to list out the directory names which contain the specified file.
See for example
File name : file.201307014.LKT
Have the directory structure as below.
/app/work/data/INDIA/file.201307014.LKT
/app/work/data/AMERICA/file.201307014.KTP... (5 Replies)
Dears,
Would you please help on following bash script:
I want to get the most recent file named alfaYYYYMMDD.gz in one directory:
for example:
in directory /tmp/
ls -ltr
alfa20130715.gz
holding.gz
alfa20130705.gz
sart.txt
merge.txt.gz
alfa20130802.gz
my result shoud be... (1 Reply)
Hi, I have about 60 files in a directory and need to rename those files. For example the file names are
i_can_phone_yymmdd.txt (where yymmdd is the date. i.e 170420 etc)
i_usa_phone_1_yymmdd.txt
i_eng_phone_4_yymmdd.txt
The new file names should be
phone.txt
phone_1.txt
phone_4.txt
I am... (4 Replies)
Discussion started by: naveed
4 Replies
LEARN ABOUT HPUX
convertfs
convertfs(1M)convertfs(1M)NAME
convertfs - convert an HFS file system to allow long file names
SYNOPSIS
[special-file]
DESCRIPTION
The command converts an existing HFS file system supporting the default maximum file name length of 14 characters into one that supports
file names up to 255 characters long. Once an HFS file system is converted to long file names, it cannot be restored to its original
state, since the longer file names require a directory representation that is incompatible with the default HFS directory format. Since
this is an irreversible operation, prompts for verification before it performs a conversion.
forces the system to reboot if the root file system is converted. When converting the root file system, the system should be in single-
user mode, with all unnecessary processes terminated and all non-root file systems unmounted. Except for the root file system, requires
that the file system to be converted be unmounted.
If invoked without arguments, interactively prompts the user with a list of the HFS file systems from One or more or all of the listed file
systems can be selected for conversion. Typically, it is desirable to convert all of the file systems in to avoid inconsistencies between
two file systems mounted on the same system.
can also be invoked with an argument of either a block or character special-file name for a file system to be converted. Only the block
special file should be specified for a mounted root file system.
As part of the conversion process, performs an on each file system (see fsck(1M)).
Options
Do it quietly.
will perform the conversions without querying the user. Normally prompts the user before converting a file system.
RETURN VALUE
returns the following values:
Success.
Either successfully converted the file system, or the file system already allowed long file names.
Failure.
was not able to convert the file system due to some failure in processing.
AUTHOR
was developed by HP.
FILES
Default list of file systems to check.
SEE ALSO fsck(1M), mkfs(1M), newfs(1M), fstab(4).
convertfs(1M)