Questions tagged [files]

Organized data encoded in a pre-defined format and stored on a filesystem.

In the computational sense, one-dimensional array of bytes stored in a filesystem, typically encoded a pre-defined format, often indicated by a file-extension or "magic number". More "durable" than in-memory storage.

677 questions
0
votes
3 answers

how i can read file and store its containt in variable?

I want to store number in file for example file number.txt contain 3242 I want to real this file and store its contant in variable for example variable number_var = number.txt so that number_var = 3242
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
2 answers

Retrieve My Documents After Being Removed From Domain

A friend of mine asked me to setup a home network which consists of a few computers and a printer as his employer had recently gone out of business. 2 of the laptops were brand new and 1 was his own which he used on the companies old network. I…
JFoulkes
  • 103
  • 1
  • 2
0
votes
1 answer

Sharing large files throughout an organization

We have non-technical staff members who want to collaborate on large files (~500MB). [I believe the files are SMART Notebook files with embedded videos and flash components]. I'm not quite sure what they mean when they say "collaborate", as I've…
Clinton Blackmore
  • 3,520
  • 6
  • 36
  • 61
0
votes
2 answers

Restricting a folder in UNIX to accept files of only certain type (say images)

Is it possible we can run some command on some particular folder so that we can't file type except image in that folder ?
0
votes
3 answers

SUDO permissions, file copy/chmod question?

So, I'm logged in as sudo, and seeing this... why? $ cd /var/www/drupal-6.19/sites/default $ ls default.settings.php $ sudo -v [sudo] password for sudo_username: $ cp default.settings.php settings.php cp: cannot create regular file `settings.php':…
blunders
  • 813
  • 7
  • 14
  • 30
0
votes
2 answers

How to delete last n lines of a file without copying?

Size of log file: 10 GB Free space in partition: 6 GB Need to split log file into smaller pieces, and gzip those. But there's not enough room to run something like split(1), which leaves the original file intact. That would leave us with Original…
user56510
0
votes
1 answer

how i can check if the path (file) exist or not in unix bash?

i want to check a path if exist or not before pass it as argument
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
3 answers

How can I make content of file as output of command?

I have a file contain list of path now I want to execute command on each line example :- file name : rawabdeh ....... command : command file contains:- path/no/1/ path/no/2/ path/no/3/ I want to do the following : command path/no/1/ command…
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
2 answers

how i can delete something from file?

i want to delete something from each line of file for example :- i have the following path in file…
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
3 answers

Can i still get to the old files once i transfer a cPanel account to another server

I've recently transfered a cPanel account to a new host and now i'm curious as to how i can access the files on the old server. I used to login to the cpanel of the old server with cpanel.mywebsite.com and now when i do that, it goes to the cpanel…
Catfish
  • 237
  • 2
  • 11
0
votes
2 answers

Register file changes to perform action

I have the following problem: I make some automated changes in my webserver config (through a web interface) and I want to restart the apache. Since none of the actions are performed by root I cannot start the server directly. My current workaround…
Ulf
  • 111
  • 1
0
votes
2 answers

Delete multiple files with special characters

I have a machine containing a large number of files that were originally created on a mac with some sort of special character in the name (not sure what). When I do an ls in a bash terminal, these files show up something like the following: $ ls…
ibrewster
  • 75
  • 2
  • 8
0
votes
1 answer

PHP script gives "failed to open stream: Permission denied" unless permissions allow public write

I have a php script in a directory called /manager. In it, I open and write to a file in the directory above /manager. However, if the permissions are set to allow owner write, I get "failed to open stream: Permission denied" It only works when I…
cstack
  • 163
  • 1
  • 2
  • 7
0
votes
1 answer

specify temp folder for msi extracted files used for installation

I was recently installing Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 to create my build server on a VM (Windows 2003 R2 Std), I was wondering that it would be nice to specify the temporary folder for the files being extracted by…
Binoj Antony
  • 267
  • 5
  • 14
0
votes
2 answers

File access with hostname or ip only - no domain?

Edit: I think part of the problem is I needed to use port 8080, but I'm still getting the "unable to connect" message. Is there anything I need to configure in /etc to make that accessible? -- It seems likely that this is an obvious question, but…
jonathanatx
  • 507
  • 1
  • 4
  • 9