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.

View 11 Replies


ADVERTISEMENT

Ubuntu :: Creating A Command To Open Multiple Terminal Windows That SSH Into The Same Server?

Apr 7, 2010

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.

View 4 Replies View Related

General :: Creating DVDs From Terminal (Ubuntu 8.1)

Aug 20, 2010

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.

View 8 Replies View Related

General :: Creating Some New Short+keys For The Terminal?

Feb 1, 2010

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.

View 2 Replies View Related

General :: Make Linux Terminal Transparent With Terminal Command?

May 10, 2010

Is it possible to make terminal (xfce4-terminal) transparent from bash script?

Maybe by enabling compostion?

View 1 Replies View Related

General :: Append Command Output To File By Giving Command In Terminal?

Jul 3, 2009

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?

View 4 Replies View Related

General :: Creating Account With Useradd Command

Mar 9, 2011

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.

View 2 Replies View Related

General :: Creating A Shell Using C Which Could Implement LS Command

Sep 4, 2010

I would like to create the shell which would support the LS command in C++. And the way the command prompt can be changed.

View 7 Replies View Related

General :: Dd Command Not Working While Creating Live USB

Feb 5, 2011

I want to create a Live USB ..I have the ISO image in the hard disk

Where Sdb is my USB

The copy operation is okay...It says no of records in / out and gives the statistics

But when I boot the system , getting the error:

Boot :

In some cases , the USB itself is not recognized by BIOS at boot..

My BIOS supports boot from USB ..I have Boot order 1. CD/DVD 2. USB 3. HDD

Also what is the filesystem to be adopted for dd?

I usually format using FAT or FAT 32

1.mkfs.vfat /dev/sdb -I (or)
2.mkdosfs /dev/sdb (or)
3.mkdosfs -F 32 /dev/sdb

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.

View 3 Replies View Related

General :: Creating User With Password In Single Command?

Jan 16, 2010

I'm trying to create a user john with default password 'abcdef'. I used the following command.

useradd john -p abcdef

I can't login with the password. in /etc/shadow file I can see the password in clear text format. how I can create a user along with password.

View 3 Replies View Related

General :: Batch User Creating With 'newusers' Command Question

Jul 26, 2011

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.

View 1 Replies View Related

General :: Command Line - Create Directories That Don't Exist While Creating A New File?

May 8, 2010

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

View 1 Replies View Related

General :: Apache Command And Terminal / Command With Apache Through Web Browser And It Is Not Working?

Aug 18, 2009

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

View 7 Replies View Related

General :: Set What Should Happen In Terminal On A Certain Command?

May 20, 2011

If I execute

cal 2013

in terminal, it echoes the calendar for the year 2013. For the matter of fun, I'd like the terminal to echo

This year won't come.

How should I do this? I tried adding it as an alias to .bashrc, but I cannot create aliases with spaces.

EDIT:

The final solution:

echo "cal() { if [[ $@ > "2012" ]]; then command echo "This year won't come."; else command cal "$@"; fi; }" >> ~/.profile && source ~/.profile

View 1 Replies View Related

General :: Terminal Command In C Program?

May 21, 2010

I want to design c program can run terminal command and put the output of command into file... How can i do this ? for example :

string s = " iwlist scan "

and when i run the programm this command applied and put the output into specific file

View 1 Replies View Related

General :: Command From The Terminal Window?

Apr 11, 2011

I think this command is for a symbolic link "ln -sf to folder from folder" is this correct?
Also what does the -sf stand for?

View 2 Replies View Related

General :: Starting Out From Scratch?

Feb 19, 2011

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.

View 1 Replies View Related

Ubuntu :: Command For "Open A Terminal Window And Run Application In This Terminal ?

Aug 8, 2010

What is the command for "Open a terminal window and run application in this terminal

View 4 Replies View Related

General :: Function Of Netstat -a Terminal Command?

Jan 26, 2011

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?

View 3 Replies View Related

General :: [Bash] Send Command To Another Terminal?

Sep 10, 2010

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.

View 6 Replies View Related

General :: Command Prompt Missing In Terminal

Jul 15, 2010

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.

View 13 Replies View Related

General :: Gnome-terminal Command To Open Up A New Tab?

Aug 20, 2010

Are there a command to open up a new tab in gnome terminal(Ctrl+T outcome). I need it to use with in bash script.

View 2 Replies View Related

General :: Unable To Launch Gcc Through Command Terminal

Feb 7, 2010

I am unable to launch gcc through command terminal.I am using red hat platform.

View 4 Replies View Related

Ubuntu :: Creating New Partition In Terminal ?

Dec 9, 2010

How to create a partition in terminal, like using fdisk.

How to do it in command line,what are the commands to be executed and if there are best practices that I should observe when doing it.

View 5 Replies View Related

General :: Starting Completely From Scratch

Jun 22, 2011

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.

View 15 Replies View Related

General :: Command Line - RSS Feed Reader From The Terminal?

Jun 12, 2010

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.

View 2 Replies View Related

General :: Run A Java Command As Soon As The Terminal Opens And After It Displays

Sep 12, 2010

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.

View 1 Replies View Related

General :: Command To Update Terminal As File Is Updated

Mar 13, 2011

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.

View 1 Replies View Related

General :: Send Command To Another User's Screen Terminal

Mar 22, 2011

I have two users; user1 and user2. I have a bash script run by user1, that needs to run a command on a screen terminal started by user2.

View 1 Replies View Related

General :: Can't Quit Terminal Command - Grep Some_word?

Sep 5, 2010

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.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved