this post was submitted on 24 Nov 2023
72 points (95.0% liked)

Linux

48220 readers
629 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 14 points 1 year ago (11 children)

Good article. Rather than aliasing `cd ../.." etc. I've got this function in my setup:

up () {
	local x='' 
	for i in $(seq ${1:-1})
	do
		x="$x../" 
	done
	cd $x
}

This lets me do up 4 to go up 4 directories.

[–] [email protected] 4 points 1 year ago (2 children)

Oh I really like this. I never had an alias for this since I need to do multiple backwards cds very rarely, but I might just copy this

[–] [email protected] 1 points 1 year ago

Go for it. I've been using it for years without a problem.

load more comments (1 replies)
load more comments (9 replies)