UNLINK(1) User Commands UNLINK(1)NAME
unlink - call the unlink function to remove the specified file
SYNOPSIS
unlink FILE
unlink OPTION
DESCRIPTION
Call the unlink function to remove the specified FILE.
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by Michael Stone.
REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report unlink translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO unlink(2)
Full documentation at: <http://www.gnu.org/software/coreutils/unlink>
or available locally via: info '(coreutils) unlink invocation'
GNU coreutils 8.28 January 2018 UNLINK(1)
Check Out this Related Man Page
UNLINK(1) User Commands UNLINK(1)NAME
unlink - call the unlink function to remove the specified file
SYNOPSIS
unlink FILE
unlink OPTION
DESCRIPTION
Call the unlink function to remove the specified FILE.
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by Michael Stone.
REPORTING BUGS
Report unlink bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report unlink translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO unlink(2)
The full documentation for unlink is maintained as a Texinfo manual. If the info and unlink programs are properly installed at your site,
the command
info coreutils 'unlink invocation'
should give you access to the complete manual.
GNU coreutils 8.5 February 2011 UNLINK(1)
Hi mates,
I have created a shell of my own and one of the built in functions is COPY. This command is supposed to check the availability of a command in a specific direcotry and if the command is available chnage its extension to old. my problem is that how can i search for that specific file in... (1 Reply)
Hi all
I did something incorrectly about link command.
I try to make a link from a sub-dir to root dir, but I use the following command:
link / zzz
the result is sub-dir "zzz" was linked to "/"
Then I want to remove the "zzz" by using unlink command:
unlink zzz
It say that "Device... (1 Reply)
Hi,
I saw this C program on Unix with
unlink("tmp.log");
unlink("time.log");
at the end of the file.
What's the purpose of doing this?
Thanks a lot! (1 Reply)
Hello all,
I have a script which runs every 15 minutes and moves all but latest 10 files from a directory (A) to Directory (B).
Most of the times this job runs fine but sometimes it is giving "mv: cannot unlink {Target Directory name } : Permissions denied."
Any help about this error msg... (1 Reply)
Hi,
I have a two lines of code both intend to perform the same task.
unlink $CtrFile;
system ("rm $CtrFile");
Both of which try to delete a certain file. However when I use the unlink command the file does not get deleted. When I use the "rm" system... (2 Replies)
I was trying to remove a symbolic link of /etc/hosts to /etc/inet/hosts
well i forgot the command and in the /etc directory i did unlink inet and now i can not get into inet and it does not exist in /etc
1) what do i do to fix the inet directory
2) how do i link /etc/hosts to... (1 Reply)
I have some files that appear to have no inode numbers. To complicate the matter, the filenames have UTF8 (I think) characters.
I am trying to delete them. In fact, and this might make things easier, I'm trying to delete their parent directory.
I don't know what to try next, please help.
... (5 Replies)
We are using Solaris 10 on tiny box. My issue is after server panic cron is not coming up, I've tried to manually restart cron but no luck.
# cron stop
cron could not unlink FIFO: no such file or directory
! cannot create fifo queue Thu Dec 17 11:20:17 2009
! ******* CRON ABORTED *******... (5 Replies)
I had a directory like A/B/C and these are all what I did.
cd A/B/C
ln -s some_path/some_sub_dir/C/* .
After this, I have around say 1000 files linked to my A/B/C directory. How can unlink all those files at one shot? The unlink command requires filename as an argument but what I need is to... (1 Reply)
So, I have a php program that i need to delete ALL files in a directory that are older than a certain age.
<?php
/* Get file stat */
$stat = stat('/apps/security/ajaba');
This is as far as I've been able to get. I know in shell programming you can easily do something like this. but I'm... (2 Replies)
Currently my data is organised in a volume which has a cache directory (where all the files are first created or transferred). After that there are suitable directories on the volume which in their subdirs, contain files hardlinked to files in the cache. This is done so that the same inode... (1 Reply)
Here is the scenario...
NFS share that is accessed every few minutes by approx 70 systems (AIX 5.3/6.1). Filesystem space is being eaten up rapidly according to df however du numbers really never change. lsof and fuser cannot see any unlinked files on either the NFS server or remote... (3 Replies)
Hello,
I have a set of directories, which has inside them, symbolic links to some files. What i would like to do is to covert the links into actual files, i.e. remove the link and copy the actual file here...
I tried to see unlink command but i think all it does is delete the link, is... (2 Replies)
Hi,
I have a dir and some files as below (all have full perm)
drwxrwxrwx 2 sam sam 4096 Aug 8 04:31 /home/sam/test
$ ll /home/sam/test
-rwxrwxrwx 1 sam sam 0 Aug 8 04:31 b1_2013_file.txt
-rwxrwxrwx 1 sam sam 0 Aug 8 04:31 c1_2014_file.txtI want to go to this directory and delete the... (2 Replies)