General :: Create A File And Delete A File Using "-" Symbol
Apr 10, 2011How would you create and then delete a file that begins with the symbol "-"? Try it.
I can't write the command for this question and I don't why.
How would you create and then delete a file that begins with the symbol "-"? Try it.
I can't write the command for this question and I don't why.
I've tried many commands already for creating a file and deleting a file using the # symbol, but it does not work. Can anyone tell me the command to create and then delete a file that begins with the symbol #?
View 1 Replies View RelatedI've tried many commands already for creating a file and deleting a file using the # symbol, but it does not work. Can anyone tell me the command to create and then delete a file that begins with the symbol #?
View 2 Replies View RelatedMany folders within a subdirectory some of which have lots of data in and some of which have only one specific file called produkt.fil inside.I need a command to find and delete those folders that contain ONLY the file produkt.fil - if other files exist (doesnt matter what they are) then they should be left alone. Note: produkt.fil exists in all of the folders always.
View 5 Replies View RelatedWhen I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?
View 1 Replies View RelatedHow do I delete a file if it happens like this.
-????????? ? ? ? ? ? temp.cgi
We are looking to monitor and log selected application file systems for file create/modify/delete changes that will also include, user account that changed/deleted the file, file name and date and time of event. Everything I have looked at does not seem to provide all of the information that we need.Inotify seems to monitor modify/create/delete but does not seem to provide the user account. Auditd seems to monitor modify/create/append with user account, but not deletes.We need to provide this information to auditing for Sarbane Oxley compliance.
View 3 Replies View RelatedI need a definiton of what a symbol is in (symbol table) and or object file context.
View 4 Replies View Relatedcan i actually edit /etc/sysconfig/iptables and create/delete rules inside that file?will it work? i just find using the IPTABLES -A or -D command a hassle
View 3 Replies View RelatedI was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.
But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??
I am testing my ftp server configuration.Anonymous download works , however anonymous upload does not.I am getting the following error message from both Windows and Linux 5.4clients : 553 cannot create the file.And i am running Fedore 12.
View 3 Replies View RelatedI am getting '+'symbol (-rw-r-----+) while viewing the file permission of exim_mainlog files. what the reason for this '+' symbol. -rw-r-----+ 1 mailnull mail 648448492 Jun 25 10:27 exim_mainlog
View 2 Replies View RelatedEverything in Linux is a file, right? And everything can be represented by a file? Is there some way I could create a block device file that represents (i.e., provides an interface to) this image file? If so, then I could use fdisk on the device file to split it into partitions, format the partitions, and then mount them as directories. I could create a file system within a file system, which would be fun.
View 2 Replies View Relatedi want to find a command line way to edit a text file to delete all commas in the file. i do not want to replace them w/ anything.
View 2 Replies View RelatedI am trying to delete lines of a file if they contain text that is present on another file. For example
> cat one.txt:
a
b
c
d
[code]....
I get the following output:
> ./test.sh one.txt two.txt
a
b
d
e
[code]....
we assume that we have 2 folders with the name 1 and 2 . The folder 2 is inside 1 . Also, in folder 2 we have file with name "file.txt". And we are in folder 1 . How can we delete the file.txt in one command line ? I mean without using the code below:
Code:
cd 2
rm -f file.txt
cd ..
when i try to delete, it says can not move to trash,so, how do I delete it permanently?In windows is shift+del
View 2 Replies View Relatedafter so many times deleting staff for mistake.I am unable to get it back from my external hard drive.I use Ubuntu 8.04 LTS and I have all my staff on external hardrive.
Quote:
Z:----> Media -----> FreeAgent Drive
After delete I knew was her
Quote:
/acousticmetal[1]/
, I did all the search I can possible think of.and i dint have any good look can any one please help me out on this issue?.
i wanna ask on how to delete a file or a certain file in linux by using php or in other word by using web browser. example i want to delete the file inside /var/www/cgi-bin/ with browser.
View 14 Replies View Relatedlooking to delete the last 6 lines of a file with sed. figured out how to delete the last line..but i want the last six.
View 6 Replies View RelatedI was creating a few scripts, I am trying to create a restore script to restore files that have previously been moved to a folder I selected. When moved I stored the original path for these files all in one text file.
I want to know if anyone can tell me how to delete the line from the file after using it restore the file. I have used the grep command to search through the file "pathName" to find where the file was stored but now want to delete that same line.
I am facing a basic problem in RHEL 5.2. Some of files in a mounted showing ? in place of owner and group owner.
root# find /data/abc -nouser
listing those files.
How to delete those files because
root# find /data/abc -nouser -exec rm -rf {} ;
showing error access is denied.
how to delete unreadable file? As you can see at attached picture, there is two unreadble files at root directory.
Code:
[code]....
Why is there no Delete when I right click like there is with Windows in ubuntu? Pretty much everything else is there like new folder and so on Is there some way to add it? Also why when i delete something does it not ask me if I am sure that i want to delete that file?
View 6 Replies View RelatedI am trying to find and delete a file using this Code: find . -type f -name ph2964781400100954291.jpg -exec rm -f {} ; It does not work, I think because by default on my distro rm is iterative.
View 2 Replies View RelatedI have external USB HD 500 GB, by mistake folder with 13 GB deleted, using some windows recovery tools, i got it back, but the deleted folder still take and fill space on the HD!!
any idea how to remove or edit it under linux ?
I have a file that contains 100 ligns, i need to write a script that read 70 lignes and redirect those 70 ligns to another files and these 70ligns have to be erased in the first file
when i write this command
head -70 somefile.txt>test.txt
or
sed -n 70p somefile.txt>test.txt
i have these 70 lines in the text.txt files
but these 70 lines have to be deleted inthe first file somefile.txt
seems like i got a hacker on my server who placed a "western union fishing" site on it.i am not able to delete the directory with the root user.
Code:
root@laforge:/var/www/html/mailadmin.somewhat.com> ll
total 12
[code]....
i've got a file with sorted words - one on each line.How could it be possible to delete thouse lines that have words of length 1 or 2 (1-2 letters). I guess a good way it will be with AWK, n its fuction length(), but getting it, i dont know how to delete those very lines.
View 14 Replies View RelatedI have a log file which is continously being accessed. Now I want to delete the first line without disturbing the file.Is it possible? The Issue is the log file is being provisioned with ^@^@^@ characters in the first line occupying huge space.So I need to get rid of that. I dont have time to work with root cause but just a script to reduce this space.
View 3 Replies View Related