General :: Quickest Way To Share File From Shell
Jul 30, 2010I'm using Ubuntu minimal install (With no window manager). What is the quickest and easiest way to upload a file somewhere? Something like a script to pastebin would work.
View 2 RepliesI'm using Ubuntu minimal install (With no window manager). What is the quickest and easiest way to upload a file somewhere? Something like a script to pastebin would work.
View 2 RepliesWell, I want to be able to run some Linux in a VM at my school (on WinXP systems), via a USB stick.Two problems:
- Computers are mediocre
- Will be on many of them
I tried portable virtualbox but it starts very slow and runs slow without the guest additions. It just doesn't work right.What I need is a quick, portable VM that starts up quick and runs decently; I'm not expecting all that much from a USB stick but at least smooth cursor movement.I would like one that allows me to save changes on the virtual HDD, as opposed to a LiveCD style VM.
I have used freespire and PCLinux these are both full Linux versions but they both take a good while to a) install and b) run from the Live CD, can anyone recommend a stripped down version of Linux that is quick to boot from a live CD etc but still has a good amount of featues, for testing purposes?
View 9 Replies View RelatedHow can I read .gz file direct on shell/terminal without decompressing the file?
satimis
I need a shell script that will add the users name and date to a file when the user has modified the file, these files are within a group and only accessible to this group. But we need a way for people in the group to know who and when the file was last modified.
View 1 Replies View Relatedi am trying to convert a binary file in to ASCII using shell script. this file contains multiple types of data like string, number, bcd, etc.
View 5 Replies View RelatedI am supposed to take some small files, and print them to a specific printer, such that the small files are concatenated into one file. The file name has to be included in the file that gets printed.
Should I be looking to concatenate the files into one file with the file names included, and then print them?
something like: -printfunction -printername < file*
What is the quickest way to get the thread id(tid) of the current thread in linux? Specifically I use fedora 13. ...and I am talking about inside a C++ program.
View 2 Replies View RelatedI am looking for the quickest way to do multiple searches for different files.Here is the scenario: I want to search for various icons one by one in a script. Preference is for the gnome icon theme.
The echo piped into grep part seems to take a long time. Is there a quicker way of doing this?I do not want to use slocate, sqlite or the like since that will require admin privileges to update the database and/or extra dependencies.
I'm studying Linux and just started reading about permissions and ownership. My question is how would you have multiple users or groups given access to a certain directory? When doing an ls -l I see the owner, group and others that have permissions that have access to the file or directory. But what if I need multiple different groups access to a particular file or directory all with different permissions?
View 2 Replies View RelatedI would like to attempt creating a cron job to backup my root (/dev/sda1) & home (/dev/sda3) partitions to an external USB drive.I have been using Clonezilla to make image backups but, I have to physically do it, when I remember or have the time. I have never created a cron job, and worse, I have never created a .sh file which, I think, is what I need to do.
View 12 Replies View RelatedSo if I have a file with a list of files:
file.txt
file1.a
file2.b
file3.c
and I wanted to perform a script using a loop or recursively on each of those files, is there any way that I could do this?
I saw that xargs might be able to help me.
Here is sorta what I want to do:
Code:
#!/bin/bash
cat file.txt | xargs?? # Some commands to turn each line into a variable
for var in ${@}; do # Some way to get each of the files
# script on each file
I have a small script that uses the find command to look for a log file named: backup_log.txt. And then uses the first value in the log file as a variable in the script later on. However, say there are two or more of these log files located in different directories, how would I let the user choose which log file will be the one to use, and then make that (fullpathtofile) the value of the variable that will be used.
View 5 Replies View RelatedI am working on some homework, however i am not here to be spoon fed. I am trying to get the numerical modification date of each file in a folder. Ie lets say there is a file called bob and it was modified 2006-11-23. i want to get it into a variable as 20061123.
Now i currently have this code:
Code:
However for some reason my output is:
Quote:
See how the 2011 has been placed next to it? i ran it with -x and saw this:
Code:
However i do not know how to find a way around this?
I need to convert the following .bat file to a linux shell script.experienced and kind linux folks:
:: Import database schema
echo off
echo.
[code]....
I'm using fedora 14...i would like to insert few texts to a file in shell prompt(may be useful in scripting for in the future)...for eg,
[root@ruby ~]# cat > hello
1
2
2
[code]....
so in the above file i need to add the line "new line added" near the number 4 in the above file ....how can be this done ...?
I want to overite a file using shell script.
i need to overite the file withe value of 2nd argument.
echo $2 > /home/dir/file.txt whether this will work? or what is the correct syntax?
I have a spare machine that has windows XP installed on it and pretty much sits there doing nothing. Both myself and my GF have laptops that we use as our primary machines so I figured I'd just use the spare machine as a file and print share.
Now, I know that I can simply keep XP on there and enable what I need, but Im wondering if I might be better of wiping the thing and installing a linux based os instead.
There's no real reason for me to do this (except that I want to play with linux) so I guess my questions are, is there any point in me doing this? If so what can I do with this machine other than filesharing and what do you reccomend as a fairly light linux installation? Also what else could I use this spare machine for?
Been messing around with Ubuntu 9.1 for the last few weeks and am loving it so far. Been trying to get in the terminal and learn a little something, to no avail. LOL I have been googling and searching the site today for info on networking. My Linux box is a desktop, with my main HDD mounted with music, and movies and some other stuff. My intent is to network the two laptops in the house (Windows XP and Windows 7) to the Linux box so I can listen to my music and watch movies when not in the office. I have found some info, mostly involving Samba, and plan to install Samba tonight and fiddle with it. My issue was with security. I have read a few posts and they talk about the fact that if you share files in this manner, the set up is not secure at all. Is this something i should really be concerned about? If the folders I share only have my music and videos in them,
View 4 Replies View RelatedI'm interested in viewing the owners of files on a Windows Server 2003 share (mounted on a Linux computer). These "owners" would be users in Active Directory. If it's not possible to see the username, I wonder if it will at least show a unique identifier. Currently it says all files are owned by root with an "ls -l".
View 4 Replies View RelatedI have a linux (Ubuntu server 8) that is busy collecting data files for me, but I need to see them on a windows machine. The winXP computer is in an AD domain. The ubuntu server is running Samba and I believe I have set up sharing - I can see/list the files on winXP. however, when I try to open the files to read ( in this case by Wireshark ) I get a permissions denial. Where and how can I set those permissions?
View 1 Replies View Relatedshell command to display contents of a file? Like that of .txt or .html
View 9 Replies View RelatedAssume I have a text file as belowabcdaaaaaaagfgkhahahahahahhahhgfThen gf would be returned
View 4 Replies View Relatedthe below tag is in the xml file. Now i want to find and extract the value of application name test1 and test2 one by one in the unix shell script. how to do this
<application name="test1">
</application>
<application name="test2">
[code]...
How to Look at history file in unix shell for a user, find 5 most often used commands.
View 5 Replies View RelatedWhen I try to execute my script its getting error
.........................................
tape_restore.sh: 40: source: not found
tape_restore.sh: 41: source: not found
tape_restore.sh: 42: source: not found
.................................
But in Redhat I can run same script . My script as follows.
**************************************************
SCRIPT_HOME=/home/dhanushka/project/mChoise_Recharge/scripts/scriptfw
TAPE_DRV=/dev/st0
[code]....
I have a file like below
n
p
1
1
50
w
I need to modify the first occurence of 1 byt some other integer.How do i do it using shell script?Can anybode help me out with that?
I am calling a URL from shell script and passing few argumants,Here i have to pass file content as one argument.How can i pass file content through URL.
eg:
content=`cat /Users/test1.txt`
open http://localhost:8080?filecontent=$content
[code],...
Kindly help me converting a batch file with following commands into shell script..I would like to have the same functionality with shell commands.
View 2 Replies View Relatedthis is how we append a file at command line its like
cat>>file.txt
adasds
^D
but how to write the code for appending a file in a shell script i tried but its not running
cho "the contents of the file before appending"
cat ab.txt
echo `cat >> ab.txt
[code]....