General :: Change The Restrictions To Some Normal Text Files?
Oct 23, 2010
I'm trying to change the restrictions to some normal text files and their result is not what is expected.
For example, when I put:
chmod 000 testfile.txt
on a file that is
-rwxrwxrwx,
it instead becomes
-r--r--r--.
It doesn't matter whether I do it with a root or the owner of the file, the result is the same.
Also, putting
chmod u-rwx testfile
results in the file becoming, again,
-r--r--r--.
Also, some doesn't have any effect, such as
chmod o-r testfile.
Even if I do this, the result is the same -rwxrwxrwx.
View 10 Replies
ADVERTISEMENT
Jul 21, 2011
in the shell. how do i compare 2 text files and change matching lines in one of the files ?
example:
cat file_1.txt
line_1
[code]...
View 6 Replies
View Related
Aug 1, 2010
I noticed that file /etc/shadow changed it's timestamp.Why it is changed? Is it "normal"?
View 4 Replies
View Related
Jan 15, 2010
may be an advanced question but I need to know how to do this. Here at work I am in charge of recruiting and we have about 1,000 resumes in already. All of the resumes are in a .pdf format. I need to rename every .pdf in the following format:{firstnameLastname}.pdfThe only way I know how to do this is to convert all the .pdf files to text, extract the name out of the first few lines of text, import into excel, and then use VBA to rename the files in mass:Here is my logic so far:~Deskop/a = houses all the .pdfresumesOpen terminal: Code: cd ~/Desktop/afor f in *.pdf; do pdftotext -raw $f; done That will convert all of the preceding resumes into text filesNow I would like to append the name of the text file into the last line of the text file. So, for example, for Resume1.txt, I want to append "Resume1.txt" to the last line within Resume1.txt. So after I run the command I open Resume1.txt and on the last line within I want to see "Resume1.txt" on the last line, at the end of the resume.How can I do this? I would like to use a loop and have the terminal append the filename to the body of the text file until all of the have been appended.
View 1 Replies
View Related
Apr 21, 2010
Currently, when I'm searching text in files of my PHP project, I use this line :
Code:
grep -r 'myTextToFind' *
But now, I would like to search only in ".lang" files. How can I do that ?
View 7 Replies
View Related
Jan 22, 2010
I have 2 text files : file1.txt and file2.txt
cat file1.txt
15 this is a sentence containing various words and spaces
34 this is a another sentence containing various words and spaces
cat file2.txt
2 this is sentence1file2
6 this is sentence2file2
54 this is sentence3file2
I would like to join these 2 files. The result should look as follows :
cat joinedfile.txt
2 this is sentence1file2
6 this is sentence2file2
15 this is a sentence containing various words and spaces
34 this is a another sentence containing various words and spaces
54 this is sentence3file2
==> so the joined file must be sorted on the first number. Any ideas how this can be achieved ?
View 4 Replies
View Related
Oct 2, 2010
On a Fedora Core box, I have a normal non-privileged user and I also have sole access to the root account. Because I am the only administrator of this box, I frequently su over to root for administrative tasks. The problem is that many of the user configuration I've become accustomed to are only configured on my day-to-day account (.vimrc, .bashrc, .screenrc, etc). Other than giving my day-to-day user account privileges to perform administration tasks, how would I go about sharing configuration between these two accounts?
View 1 Replies
View Related
Jun 23, 2010
I just want to know that how can I execute my scripts (example.sh) files like other normal commands from command-line. Please describe the full method
View 5 Replies
View Related
May 25, 2011
How do you convert Open Office (ODT) documents to Text files?
I have made a report using libre office. Now I wish to continue editing the document using lyx (latex front end). So the ODT file needs to be saved as some .tex file.
I don't see an option to do this in File menu (export/save as). So is there any other plugin to do this?
View 1 Replies
View Related
Apr 8, 2010
I was recently surprised by this SCIM stuff that seems to screw around with my normal text input. I try to be curious and approach my issues with an open mind, so before I try to remove SCIM, I want to know what the hell it's supposed to do.but it's not obvious to me
View 3 Replies
View Related
Feb 7, 2011
I manage to boot with ophcrack 2.3.1 and we were able to see the files, luckilly. Now, we just want to retrieve his passwor to get back into the system. So far I got up to the part where is actually produces the file and this is what is contained in the file:
Quote:
Administrator:500::31d6cfe0d16ae931b73c59d7e0c089c 0:::
Guest:501::31d6cfe0d16ae931b73c59d7e0c089c0:::
SUPPORT_388945a0:1002::881037e0b6909b04b6900f7c806 dca6e:::
HelpAssistant:1004:b209ce7e3ff7aea1131906e9f5df481
[Code].....
View 1 Replies
View Related
Jul 28, 2010
How can I change the default text editor for console programs in Ubuntu.When I run mutt and send a message, it currently loads up Joe and I would prefet to load Vim.I know I can change $EDITOR for me only, but would prefe to do it system wide.
View 2 Replies
View Related
Mar 21, 2011
i have a file thunderbird which size 1.57GB, that files contain the email that had been deleted but fortunately not been compact so i still can retrive the email that had been deleted the problem the superior not give me the specific of the subject or date on the file.
Code:
X-Mozilla-Status: 0001(this number sometimes not same)
X-Mozilla-Status2: 0000080(this number sometimes not same)
what i need is change the contain number 0001 to 0 in X-Mozilla-Status not the X-Mozilla-Status2, is there any way to do, and the file contain so much text like that so i want to change automatically.
View 5 Replies
View Related
Apr 21, 2010
I set some restrictions in /etc/pam.d/system-auth, but they don't seem to be affecting anything.
/etc/pam.d/passwd:
Code:
password required pam_cracklib.so retry=3 minlen=8
password required pam_unix.so md5 shadow use_authtok
/etc/pam.d/system-auth:
Code:
auth required pam_env.so
auth sufficient pam_unix.so likeauth nullok
auth required pam_deny.so
[code]....
View 3 Replies
View Related
Jan 14, 2010
I dont want to allow the user winny on saturday and sundays. I added the following line in the /etc/security/time.conf file.
login;*;winny;!SaSu0000-2400
Then i added the following line in the /etc/pam.d/login file.
account required pam_time.so
this is the first line of that login file. But if i tried to login with the username winny it allows me to get log in. Is anything has to be change?
View 14 Replies
View Related
Mar 25, 2011
i have jsut setup a kvm virtual machine on my server. to connect to the VM from outside of the network i use ssh tunneling. what i would liek to know is if there is any way to create a new user with jsut ssh access. i dont want people to be able to edit files in ~/ or such. jsut need the user to estabilish the connection to the server
View 1 Replies
View Related
Jun 12, 2011
how do i change resolution in Zorin to make the text larger.
View 5 Replies
View Related
Mar 20, 2011
I need to change all number 10 in a text file to word form, or in short from 10->ten. the thing is number 10 including in dates such as 10/22/1997 or 03-10-2011 should not be changed. im having some trouble because the file contains numbers like "price range from 10-50k".
this is just a sample.
name: john smith
birthday: 10-11-1995
date hired: 05/10/2010
expected salary: 10-50k
typing speed: 10 wpm
[Code].....
Using sed command is it possible to change like this..
View 11 Replies
View Related
Jun 1, 2010
Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.
View 4 Replies
View Related
Dec 30, 2010
I am using internet web control through squid... All is working fine only some little bit issues.
(1) Sometime when i tried to open google.com or any site I got message (The requested URL could not be retrieved) Screen Shot Attached.) but again after sometimes same websites will open.
url
(2) I would like to block word 'sex'.. So I have edit squid.conf with the following acl
acl Blockword url_regex sex
http_access deny Blockword
but problem occur in some websites where 'sensex' word found in url. Then squid block 'sensex' url content website also..
View 2 Replies
View Related
Nov 5, 2009
I would like to write a text user interface (TUI) to adjust some text config files etc. Is there a tool or application for creating TUIs like this. I�m talking about those types of config tools which you see executed at first boot.
View 19 Replies
View Related
Oct 1, 2010
How could I change from the Netbook Launcher to a more typical desktop? The launcher is nice, but I'm bored of it. using UNR on a EEE PC 900.
View 1 Replies
View Related
Mar 25, 2011
Can I limit the system resources that a process can use on Linux? I want to configure the system to avoid that some specified processes use some system resources:
choose if a process is allowed to use network and Internet.
choose which files and folders that a process can read, write or execute.
choose if a process is allowed to use sound and graphics output, and printer.
choose the limit of memory that it can use.
View 2 Replies
View Related
May 18, 2011
Can anyone point me to a well working peace of software (free will be preferred) that can convert text-files into pdf.
View 6 Replies
View Related
Jul 14, 2010
I want the difference of two text files(a.txt & b.txt) into a third text file(c.txt). i.e. New or Differert rows of a.txt compared to b.txt
a.txt>
10128|10153|999999
10343|10153|000
10345|10153|3846
10351|10153|3846
b.txt>
10128|10153|999999
10343|10153|3853
10345|10153|3853
10349|10153|3853
c.txt should be like>
10343|10153|000
10351|10153|3846
I tried comm,but man says that the files have to be sorted in order to use comm. I dont want to sort the files.
View 3 Replies
View Related
Nov 23, 2010
find text within files? detailed at Code: man grep
View 2 Replies
View Related
Oct 26, 2010
I had used test desk program to restore my files ,the files that recovered was saved in home folderthe problem is that these files are become root permission only ,so i cantcopy , move theme
View 3 Replies
View Related
Jul 28, 2010
I was messing with appearances and inadvertently changed my mouse pointer. Currently it's big and red, I can't figure out how or where I need to be to change the mouse pointer back to normal.
View 1 Replies
View Related
Aug 9, 2010
Some pdf readers for windows allow you to highlight and type notes into PDF files. The pdf readers that I've seen for Linux only allow you to read pdfs. Are there any that allow you to highlight text and add notes?
View 2 Replies
View Related
Jan 24, 2010
I'm needing to read the Adam's Assembly Tutorials, that are old EDIT *.txt files, I'm on Linux and I need to read this files.What can I do?Is there any GUI editor that can read the files?There is any way to convert them into another file that is more modern1?
View 2 Replies
View Related