check if a file is in a folder or its subfolder using linux terminal
location: linuxexchange.com - date: March 3, 2014
I want to check if the particular file is in a folder or its sub folder or not using Linux terminal.
Which should I use for this? I use find and grep command but it travels only one folder.
How do I send a file as an email attachment using Linux command line?
- date: September 24, 2008
I've created a script that runs every night on my Linux server that uses mysqldump to back up each of my MySQL databases to .sql files and packages them together as a compressed .tar file. The next step I want to accomplish is to send that tar file through email to a remote email server for safekeeping. I've been able to send the raw script in the body an email by piping the backup text file to mailx like so:
$ cat mysqldbbackup.sql | mailx [email protected]
cat echoes the backup file's text which is piped into the mailx program with the recipient's email address passed as an argument.
While this accomplishes what I need, I think it could be one step better, Is there any way, using shell scripts or otherwise, to send the compressed .tar file to an outgoing email message as an attachment? This would beat having to deal with very long email messages which contain header data and often have word-wrapping issues etc.
how to open pdf file using linux terminal [closed]
location: linuxexchange.com - date: June 30, 2014
i tried this one get this error
(gnome-open:4137): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
GConf Error: No D-BUS daemon running
Monitor linux server and/or log files using the terminal [closed]
location: linuxexchange.com - date: January 1, 1970
Sometime ago when I was first configuring a linux server with Rails I found a nice linux monitor from the terminal. It had percentages and text-based bars showing up. It had a nice text-graphics interface. But I thought: "I will come back to it once I finish the app". So now I finished the app and can't remember in what server I installed it and what tool it was.
Is there a nice linux server monitor open source software that displays live data through the terminal? With colors and bars?
Copy Android MTP files using linux terminal or python; error Operation not supported
- date: January 1, 1970
i'm trying to create my own python script to backup Android images.i can see the Android mounted well, and i can move files back and forth using nautilus but not from CLI
the CLI error is "Operation not supported"
:/run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C006%5D/Phone/Download$ cp DSC03951.JPG /home/hkhrais/Desktop/
cp: cannot open ‘DSC03951.JPG’ for reading: Operation not supported
Traceback (most recent call last):
File "scriptt.py", line 33, in <module>
File "scriptt.py", line 18, in main
File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 95] Operation not supported: '/run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C006%5D/Phone/Download/DSC03951.JPG'
Anyone here set up thin clients using Linux Terminal Server Project?
location: ubuntuforums.com - date: February 27, 2012
I live iin Central Asia and am helping out a local reform school for orphans and delinquent youth. I'm working on getting a computer education program started at the school for the 2012-2013 academic year.
Right now they have a few really old computers (Win2K era) and I'm working to scrounge up more computers for them. Because of (1) old hardware, (2) lack of software licenses, (3) lack of money to acquire software licenses, and (4) a general love of Linux I'm considering setting up the old computers as LTSP thin clients.
According, I have quite a few questions:
Has anyone here deployed LTSP in an educational environment?
If so, what were some difficulties you faced?
What sort of hardware would you recommend for a server that has approximately 20 clients (I imagine disk I/O becomes an issue as you scale up the number of clients/server)?
Any educational software / curricula you recommend?
Do you have other helpful tips before I start planning this out?
If any of you wa
Transfer data to USB using Linux terminal from Windows
location: linuxquestions.com - date: November 14, 2009
I am currently having the Linux based terminal. I need to transfer the data from Windows PC to USB using Linux terminal.
Is there any way to transfer data to USB stick using Linux terminal through Windows PC?
Converting WAV Files to High Quality MP3 Using Linux terminal
location: linuxexchange.com - date: July 6, 2012
I converted some WAV files using LAME on Linux terminal but the quality of the sound of the resulting MP3 files is very poor, as compared to initial wav files. The results did not improve even after increasing LAME output quality to higher value.
I am looking for conversion mechanisms with following requirements
Should be able to run from Linux terminal
Quality of output MP3 files should be as good as input WAV file, if not better.
Any help or suggestions on other possible methods is welcome.
Importing MySQL database using Linux Terminal
location: linuxexchange.com - date: November 5, 2013
I have an existing database, named dlti.sql
I want to transfer it to a Linux-based server. I tried using this code, however I get no response:
mysql -u root -p Desktop < dlti.sql
The .sql file is located at the desktop.
Can anyone help me with this?
Compiling problems using linux terminal [closed]
location: linuxexchange.com - date: March 7, 2013
So I'm attempting to compiling a program using the linux command line. I'm using linux through a virtual machine. I compile using
gcc -lm calc.c -o calc
where calc.c is the source file and I'm compiling with -lm because it includes math.h. I'll make changes to the source code but it does not reflect when I run. In fact, that line of code does not even produce calc.exe....Help??
Page: 1 2 3 4 5 6 7 8 9 10