0
votes
3answers
7k views

What does ~ mean in a Linux shell?

I'm new to Linux and have been seeing this often. Could someone explain the concept here? ~/.somefilename What does the ~ (tilde) signify?
2
votes
2answers
980 views

Unix “time” command with pipeline prints no time-report

Of the two C-shell aliases below, only the first prints the time command's report of elapsed time. How can I get the alias with the pipeline to also print the time report? alias make1 'time make' ...
1
vote
0answers
295 views

Converting csh or tsh scripts to Bash

I am looking for a tool that can convert scripts written in csh or tcsh to a bash scripts. At least on the basic stuff so that I don't have to go through the process of translating everything from ...
1
vote
1answer
740 views

csh cd alias: how to eliminate error when no parameter is supplied

I am familiar with bash, but my works require csh. in my .cshrc, I created this alias: alias cd 'cd \!:1; ls -l' It works very well except for one case: when I cd without any parameter: cd In ...
2
votes
2answers
5k views

How do I add a location to my path in Unix?

I am new to Unix. I am using a default installation of FreeBSD, with the C shell (csh). Suppose I have a command I can run by executing this: /sbin/abc, but cannot run by executing abc. How can I set ...
0
votes
1answer
1k views

getting error while doing cat command “Ambiguous output redirect.”

while executing cat test.txt | java myfile > test1.txt 2> test2.txt I am getting error "Ambiguous output redirect." my java file contains System.out and System.err . I am in Unix csh ...
5
votes
6answers
7k views

How do I set $ variables in unix?

For example there is a long path that I cd to very often. How do I store the path in a variable so that I can use it everytime? For example: I wan to be able to do this cd $path instead of cd ...