Shell: Difference between revisions

From DWIKI
Tony (talk | contribs)
Created page with "How to do things on shell =Files magic= == sort by Nth field == sort -t '|' -k 4 Category:Shell"
 
Tony (talk | contribs)
mNo edit summary
Tag: wikieditor
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
How to do things on shell
How to do things on shell
 
=Links=
*https://explainshell.com/
=Files magic=
=Files magic=
== sort by Nth field ==
== sort by Nth field ==
  sort -t '|' -k 4
  sort -t '|' -k 4


=HOWTO=
==(re)connect to running process==
reptyr
==List only directory names==
ls -d */
=FAQ=
==This account is currently not available==
When you're trying to use su to run command as another user, problably means the shell is /sbin/nologin so try
su -s /bin/bash someuser -c command


[[Category:Shell]]
[[Category:Shell]]

Latest revision as of 10:58, 2 March 2026

How to do things on shell

Links

Files magic

sort by Nth field

sort -t '|' -k 4


HOWTO

(re)connect to running process

reptyr

List only directory names

ls -d */

FAQ

This account is currently not available

When you're trying to use su to run command as another user, problably means the shell is /sbin/nologin so try

su -s /bin/bash someuser -c command