General :: Creating A Terminal Command From Scratch?
Oct 26, 2010
I am looking into creating my own terminal command from scratch. I researched online for some information on this subject was only able to view stuff related to OS X. I understand that they are both Unix based, are they both similar in creating these commands? Basically all I would like is for someone to point me towards the right direction to start or complete this task.
Every time I boot up ubuntu I usually open 3 terminal windows and ssh into the same server. I would like to either click a shortcut, or run a single terminal command that will do the equivalent.
I came across the "gnome-terminal" command, but I was unable to get it to trigger an ssh command.
Ideally I would like to have a script that I pass in the number of windows I want to open and the server I would like to ssh into for each window.
Trying to COPY some of my DVDs, I've had tons of problems with the various applications such as K3B and Brasero (not putting them down though, just my experience). Recently I found the commands to use dvdbackup, and it worked perfectly. I can copy my DVDs easily and flawlessly. Really happy about that. Is there a command-line way of creating DVDs? I've got to say that using the terminal has been the most reliable and robust for me. Is there a way to create DVDs via the terminal? I'm running Ubuntu 8.1 on a Dell laptop.
I did something stupid; I think while creating some new short+keys for the terminal, I must have enabled an unknown feature to me. The keypad now acts like a mouse. For example; With NumLock on, I press 7 the mouse goes north+west. I press 6 the mouse pointer goes east.
I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?
I encountered a question in the Redhat Skills Assessment regarding useradd: Which of the following cannot be defined when you create a user account with useradd? a* A password expiration date. b* The user's primary group. c* The user's default shell. d* The user's NIS or LDAP group. e* The user's home directory. Which is the correct answer? I have my own thinking which will be explained later.
What is the correct way of partitioning USB drive? - FAT or FAT 32....Most Live USB creators (unetbootin/LiLi Live/Usb Creator) recognize only FAT32...
I dont want a Linux filesystem (ext2,ext3 or 4or reiserfs)for my USB as it is not portable across many systems as MS OSes do not read them..Also I had little success in booting a USB when I partitioned it using ext2..I read somewhere that ext2 will not reduce the life of the USB drive compared to other fs.
I recently used the newusers command to generate several user accounts from a text file. That process seemed to go well until I tried to su into one of the new accounts.
This behavior appears for all the accounts that were created from the text file and the newusers command. It seems that several configuration files that should have been autogenerated for these new users were never created. I was able to confirm this was the problem by copying .bashrc and .bash_profile from a user that was created with the "useradd" command into the /home/newaccount directory. After logging off and logging into the newaccount again, the issue is corrected.For the record, I just read this forum post and I'm looking for an alternative to this. If this is the most efficient way to accomplish my goal, then I'll try the route mentioned in the thread. I'm still open to alternatives.
I can do:mkdir messages and then: touch messages/hello.txt Is there a command that will do both - create the directory if it doesn't exist, and then the empty file? Something like: touch -p messages/hello.txt
I want to run a linux command with apache through web browser and that's is not working. and it's working properly when I execute this command through terminal, where is the problem?
NOTE: apache have the privileges to execute the command
I have a home computer that I bought to try Linux. first I want to reformat the HD so it is completely empty, it has xp now, then start from scratch. But I have not been able to format the HD. I have used all the tricks I know.
I had a dream least night in which I was on my computer and I was typing the command Netstat -a in command prompt in Ms-Dos. And I was wondering why it looks so much like a Linux terminal command? This question persisted in my mind after I woke up. So what is the story about it?
I open up 2 xterms on my desktop, A(/dev/pts/0) and B(/dev/pts/1).I can write from A to B using redirection e.g. echo "test" > /dev/pts/1How do I run a command from A on B? e.g. "clear"Basically I'm putting the 2 terminals side by side, and using terminal B to display the contents of the current working directory, by running the following in A:export PROMPT_COMMAND="ls -a > /dev/pts/1"but this fills up the screen pretty fast. I was actually looking for a way to clear up the second terminal.
Something unfortunate just happened. I was editing the bash file from my terminal and changed a source. After this I was no longer able to input commands for interpreting in the terminal.
Starting from what I would think is completely from scratch, maybe worse. A friend set up this computer on unix/linux when I expressed interest. Truthfully I don't have even the slightest clue where to start other than to offer my complete humility. If I could start with getting my dvd and cd functions to work that would be a good start.
Is there a way by which I can read RSS feeds from the terminal itself ? Something that would display the titles and a link to follow. Or maybe a software which works from within the terminal.
Is it possible to run a java command as soon as the terminal opens and after it displays you have the normal terminal prompt. I have an ascii header i made its a java file and i want it to display every time i open the terminal so it shows as a header.
I'm looking for a way to have the access log for my nginx install scroll up the terminal as lines are added to the log. I think I need a command like cat access.log | diff but I'm not sure exactly what it should be.
After typing "grep some_word" on terminal 6, the system doesn't do a thing, just lets me type endlessly. I've tried "Esc", "q" , [CTRL] + x, "exit" and no luck. I bet I'll kick my ass when you tell me but at the moment I can't figure it out. Rebooting would probably solve the problem but there must be a better way.