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
ADVERTISEMENT
May 10, 2010
Is it possible to make terminal (xfce4-terminal) transparent from bash script?
Maybe by enabling compostion?
View 1 Replies
View Related
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
Aug 27, 2010
I am a beginner of Slackware. I am using Slackware 13.1. I want to know, when I add an user in Slackware, which files and folders will be create in Slackware?
View 2 Replies
View Related
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
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
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
Aug 8, 2010
What is the command for "Open a terminal window and run application in this terminal
View 4 Replies
View Related
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
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
View Related
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
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
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
Feb 7, 2010
I am unable to launch gcc through command terminal.I am using red hat platform.
View 4 Replies
View Related
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
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
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
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
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
Aug 3, 2011
I am using CentOS5.5 & everytime it is showing command not found. If I export the path as below it will be working fine until a reboot. Again same error i.e command not found if I open new terminal. Every time I am exporting as below:
#export PATH=/sbin/:$PATH
#export PATH=/usr/sbin/:$PATH
#export PATH=/usr/bin/:$PATH
#export PATH=/bin/:$PATH
How can I set these permanently as that the paths should automatically be exported for everyone user whenever the system boots. And command completion also should happen for eg. #fdi (press tab), then it should show available options such as fdisk, etc.
View 7 Replies
View Related
Jun 3, 2010
Is there a terminal command to monitor CPU and/or RAM usage?
View 8 Replies
View Related
Jan 4, 2010
Joined the Linux community last week with a clean install of Ubuntu 9.10 and the Edubuntu overlay onto my wiped Dell Inspiron 8000 with 512MB RAM (max allowed) and nVidia GEForce2 GO video card. <<lspci: 00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82815 815 Chipset AGP Bridge (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corporation 82801BAM ISA Bridge (LPC) (rev 02)
[code]....
View 3 Replies
View Related
May 18, 2011
I use putty to get to my RHEL 5.3 workstation from my Windows laptop.
Typically, if I want a new terminal on my windows 7 workstation from another terminal or mc, I have to type start and I will see a new terminal window running the default shell.
QUESTION : What is the equivalent command in RHEL 5.3 (and or solaris) to create a new terminal window from the command line ? I will be entering this command from the shell prompt or mc's command line.
In Windows, if I want to start another terminal and in that terminal, I want to run a program, I can do "start program.exe arg1 arg2". this will create a new terminal window and runs program.exe in that terminal window. I don't have to create a terminal and then in a separate step run the program. How can I do this in Linux ?
View 3 Replies
View Related
Jul 22, 2011
Tried to make a text file and write something in it (a link) quickly as possible, because I was in a rush. So did this:
[Code]...
Now, looking briefly at the output, can't get what's happened lol! I mean, it's html for crying out loud. Not 'scripting' n all. What do you guys reckon has happened?
View 12 Replies
View Related
Sep 3, 2009
I've used the following script here: [URL] to upgrade Alsa to 1.0.21 in Ubuntu 8.04. Now whenever I run:
Code:
sudo shutdown -h <time> or sudo reboot from the terminal I get a rather annoying beep sound. What's even more annoying is if I use the shutdown command to specify a time I get a beep every 10 minutes or so.
I've tried disabling the terminal beep in the terminal profile, disabling the beep in System/Preferences/Sound, adding "blacklist pcspkr" to /etc/modprobe.d/blacklist, and running gconf-editor from the terminal and setting /desktop/gnome/peripherals/keyboard/bell_mode to 'off' rather than 'on'.
View 6 Replies
View Related
Jan 4, 2011
I moved from a Linux environment from one company to another and one annoying difference came out:When I used to run an application in a terminal (no GUI), the transcript lines were presented one the window - when the window was full then the scrolling of the lines would continue only if one hit the space bar to proceed (of course waiting to user input did not stop the run).
In the new environment the behavior is different - transcript lines keep going on and on so I need to scroll up - and moreover each page-up command is cancelled by the new lines appearing.perhaps this is also reproduce with other Linux commands , say "find" or "ls".
View 4 Replies
View Related
Sep 25, 2009
Is there a way to find out the currently installed packages and the corresponding command line to launch the package from a terminal. For example, I know that I have openoffice installed but I do not know how to find the command line to launch it.
View 5 Replies
View Related
Apr 1, 2011
How do I install Drivers for logitech c100 webcam in kiwi 10.08?
I am dyslexic. Is there a command for install webcam drivers that I can copy and paste to terminal window?
View 14 Replies
View Related
Jul 27, 2010
I recently replaced (fresh install) Fedora 12 by 13. Surprisingly I noticed there is no log-in sound for Gnome and also when I use command line terminal there is no terminal bell in spite of the fact that I checked the "Terminal Bell" option in the EDIT --> Preferences menu! I checked the speakers are not mute, I can play music. Any idea how to fix it?
View 2 Replies
View Related
May 17, 2010
Now, 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).
View 4 Replies
View Related