09-11-2007
previous,next command in unix
Hi
i tried both commands .
but it shows ^[ like tat symol .doesn't working
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Hope you can help me out here...This is what I'm doing:
% date '+%y.%m.%d'
05.03.05
How can I tweak this so that it gives me the PREVIOUS date, more specifically:
05.03.04
Hope you all can help.
Thanks!!!
Vince (3 Replies)
Discussion started by: tomeldan
3 Replies
2. UNIX for Dummies Questions & Answers
Hello all
I'm on SunOS5.9 and I'm trying to make the arrow keys work as in DOS ..get the previous command , etc .. I searched this site and got an answer. I pasted the following code to my .kshrc file in my home directory...It still does not seem to work ...Am I missing anything here ?
I'm... (5 Replies)
Discussion started by: luft
5 Replies
3. UNIX for Dummies Questions & Answers
Guys,
In work we have just gotten a new HP 9000 server and I'm trying to set it up so that if I press <Up arrow> key I can see the command I typed in last(and press enter to run it again).
Can anyone advise how to set this up. One friend suggested I touch a file called .toucheditXXXX (I cant... (4 Replies)
Discussion started by: JackieChan
4 Replies
4. UNIX for Advanced & Expert Users
We have a Solaris Server and I am acessing it through telnet to run various commands for my data validation like GREP, SED, AWK etc.
My requirement is how do i use the previous command that was executed. I tried the option 'ESC' and then 'k'. It displays the characters like '^[[A' etc. How do I... (0 Replies)
Discussion started by: vskr72
0 Replies
5. Shell Programming and Scripting
We have a Solaris Server and I am acessing it through telnet to run various commands for my data validation like GREP, SED, AWK etc.
My requirement is how do i use the previous command that was executed. I tried the option 'ESC' and then 'k'. It displays the characters like '^[[A' etc. How do I... (1 Reply)
Discussion started by: vskr72
1 Replies
6. UNIX for Dummies Questions & Answers
We have a Solaris Server and I am acessing it through telnet to run various commands for my data validation like GREP, SED, AWK etc.
My requirement is how do i use the previous command that was executed. I tried the option 'ESC' and then 'k'. It displays the characters like '^[[A' etc. How do I... (2 Replies)
Discussion started by: vskr72
2 Replies
7. HP-UX
Hi,
i would like to retrieve (only retrieve, not execute) a previous command which i executed on the command prompt. I tried the 'up arrow' key, but its not working. Instead,it showed me some funny characters. I searched around and i found the way to do it was using the way below. Several... (5 Replies)
Discussion started by: new2ss
5 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
Is there a way to bring back the previous unix command without retyping?
I tried the "arror up" key, and it seems not working (sun solaris). What is the correct way?
Thanks! (4 Replies)
Discussion started by: syang68
4 Replies
9. UNIX for Dummies Questions & Answers
hi all,
I use
date +%Y
which gives Current year.
Requirement: I want previous year to be printed. Please help me.
Note: I tried
date +%d/%m/%Y -d "-1 years" which is not working. (10 Replies)
Discussion started by: wasim999
10 Replies
10. Shell Programming and Scripting
Hi,
I was able to use !! on the console.
But when I used !! in the run.sh, it says something like command not found. (3 Replies)
Discussion started by: alvinoo
3 Replies
LEARN ABOUT ULTRIX
systemd-cgls
SYSTEMD-CGLS(1) systemd-cgls SYSTEMD-CGLS(1)
NAME
systemd-cgls - Recursively show control group contents
SYNOPSIS
systemd-cgls [OPTIONS...] [CGROUP...]
systemd-cgls [OPTIONS...] --unit|--user-unit [UNIT...]
DESCRIPTION
systemd-cgls recursively shows the contents of the selected Linux control group hierarchy in a tree. If arguments are specified, shows all
member processes of the specified control groups plus all their subgroups and their members. The control groups may either be specified by
their full file paths or are assumed in the systemd control group hierarchy. If no argument is specified and the current working directory
is beneath the control group mount point /sys/fs/cgroup, shows the contents of the control group the working directory refers to.
Otherwise, the full systemd control group hierarchy is shown.
By default, empty control groups are not shown.
OPTIONS
The following options are understood:
--all
Do not hide empty control groups in the output.
-l, --full
Do not ellipsize process tree members.
-u, --unit
Show cgroup subtrees for the specified units.
--user-unit
Show cgroup subtrees for the specified user units.
-k
Include kernel threads in output.
-M MACHINE, --machine=MACHINE
Limit control groups shown to the part corresponding to the container MACHINE.
-h, --help
Print a short help text and exit.
--version
Print a short version string and exit.
--no-pager
Do not pipe output into a pager.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
SEE ALSO
systemd(1), systemctl(1), systemd-cgtop(1), systemd-nspawn(1), ps(1)
systemd 237 SYSTEMD-CGLS(1)