Fedora :: Open A File Using Command Line In Terminal And Edit Code Within It?
Jun 10, 2011How to open a file using command line in terminal and edit the code within it ?code...
View 6 RepliesHow to open a file using command line in terminal and edit the code within it ?code...
View 6 RepliesWhen I try and run gedit command through terminal to edit files it won't open them
Quote: (gedit:4113): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
getting this error when I try to use gedit to open and edit a file through terminal: (gedit:4423): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL]... 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) GConf Error: Failed I'm using ubuntu 10.04.
View 5 Replies View RelatedI'm looking to edit my grub.cfg file to add the "pci=routeirq" code to the kernel line so I can configure my modem in Ubuntu. I'm happy with assigning a temporary permission to myself over the root file so I don't accidentally alter it later.
View 3 Replies View RelatedI've tried a couple times to install from a tar.gz file and when i try to compile the source code in the terminal I get this error "tar: bash-4.2.tar.gz: Cannot open: No such file or directory" what am I doing wrong? Now when I download the files, I leave themin the down loads folder, do i need to make a new directory? If so how do I do that and how do i call it up when I compile the sopurce?
View 1 Replies View Relatedis it possible to open a file with a terminal without specifying the application it will use ? In fact I mean what is the equivalent of the double click on the file manager for a terminal.
View 9 Replies View RelatedNow, I use Fedora Core (version 8) with core linux OS 2.6
I have some file data with size about 2G and I want to burn (write) this file to DVD rewrite.
I know linux OS can install software to burn data to DVD, but I don't have permission to install more software. I only use command line over Terminal (Gnome Terminal).
I have a linux.img image for ubuntu.I want to edit file inside it, how can open it, edit a file, then remake the bin file?
View 7 Replies View RelatedI would like to open the file manager by command line using sudo, but I just can't remember the name of it!! I can "almost" remember it... but it escapes me. And I am afraid I don't know where to look for it.
View 9 Replies View RelatedI want to know how to edit a simple text file of 5 pages without open it on cui or gui. i want to replace some of its content like name and value with other for further use.
View 1 Replies View Relatedsimple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?
View 6 Replies View RelatedI just need to edit the "rm " command such that it should move all the files / dir to a particular folder instead of deleting. How to edit the source code for rm, such that it should preserve all the deleted files / dir.
View 14 Replies View RelatedI need to set both my font size and my term ($TERM=vt220) from the command for a /usr/bin/terminal. Is there a way for me to do this?
View 2 Replies View RelatedI have a project due for my Intro to C++ class and we are suppose to generate a file listing that will take an input of a C++ source code with .cpp extension and make a copy of it with a .lst extention that will have a line number preceding each and every line.
View 12 Replies View Related I set up Samba using command line terminal, and my network does not work. I have Samba username and keyring passwords all set, then I go to gui system-config-samba, and my samba user profile password is incorrect. In the past, I have used a 10 letter password, however, every time I boot the computer, I have to go back in and re-enter the password.I wonder if samba is truncating the password because it only accepts an 8 character password? I have deleted the user, and added a new username, and it is still doing it.
If I go into the gui and re-enter the password, usually I can get the network back up with my windows machine. All of the parameters are correct, I use the network to transfer files from my Windows to my Fedora drive all of the time when it works.
I just switch to fedora from windows recently. And I love the terminal of fedora alot. The problem is when I run some command on the terminal, I need to wait for that command to finish before executing another command. This is very inconvinient, say If I open eclipse using the terminal, this eclipse program will hog to the terminal until I closed it. So if I want to use terminal again I have to open another one.Hence the question is: Is there any way open multi processes(command) using only one terminal?
View 4 Replies View RelatedI just want to see how the command line such as : "cat", "split", "ls"...ect source code ? Are they written in C or other language ? I don't know where to search those?
View 6 Replies View RelatedWhat is the command for "Open a terminal window and run application in this terminal
View 4 Replies View RelatedIs there a way to get DVD region code from command line (linux/ubuntu 9.10)? I want to script this action and store the region code (and other data about DVD) in a log.
I am looking for the info about media, not the drive.
I thought this question's best category would be in the newbie sectionBasically I have a C code, (for simplicity is only prints a few lines), called printx.c that I would like to convert into a binary file so whenever I have to type "printx" in the command line it would execute the programofcourse gcc will give me a binary file if I do a "gcc printx.c", but even the output file (e.g. print.outwould have to be executed following manner./print.outI only ask, because I notice programs like mailx (which is written in C) is a binary file that could be run in this manner (at least that's what I notice on my ubuntu distro)
View 3 Replies View RelatedI'm trying to get the source code of a web page from linux command line and save it to a file. I googled for it but didn't get any info. I'm not sure if wget can do this.
View 4 Replies View Relatedhow to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
[code]....
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
After a fresh boot of a Live CD, how do I use the gconftool command to edit:
Code:
/root/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml
??
I tried:
Code:
mint@mint ~ $ sudo su
mint mint # gconftool --load /media/scripts/gconf/gnome-terminal/custom.xml
mint mint # gnome-terminal
No changes were made after I opened a new gnome-terminal. It works fine if I'm not in superuser mode and makes the changes to
Code:
/home/mint/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml
just fine. What am I not getting here?
How to open a file or application in terminal?
View 4 Replies View Relatedthe code when recording a screen using terminal command? it has this code "xllgrab".. that's all i can remember.. i read it somewhere in this forum and it really works but i can't find that thread anymore
View 3 Replies View RelatedI have a list of domains in "domains.txt" , and I wanted to put an "nslookup" in front of each line and run it.. However I could not figure out a command for it.. Any ideas how to do this simple task?
View 7 Replies View RelatedSo, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.
Say the command is like this:
Is there a way to automate this for many different values of the parameters and generate many different files?
I tried:
I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.
How do I use my SSH Terminal to get a file that is sittng on another server that I have.. As its like 500 megs or so but to download it to my computer then upload it it takes a long time..
So this is what i have done so far
1. Loged in to SSH Terminal
2. Went to my DIR that i want to put the FILE to
3. Typed in FTP
4. I"M LOST now as i'm trying to connect using my user on my ftp site (DIFFERN"T SERVER)
I relly need the key commands SHH Terminal for dummies
I have a problem that I can't seem to figure out. I can easily create a .sh file that will execute a command in Terminal, but as soon as it executes the terminal disappears. How do I get it to stay? My idea is to have the keyboard shortcut "ctrl+alt+del" open a .sh file with the contents "ps ax". Then it would be just like having a task manager; the terminal would open with "ps ax" already executed, and all I would have to do is kill the process number.
View 5 Replies View Related