Lemmy.eus
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
mindaslab@lemmy.ml to Linux@lemmy.ml · 3 years ago

mkcd Make and change directory

mindaslab.github.io

external-link
message-square
4
fedilink
4
external-link

mkcd Make and change directory

mindaslab.github.io

mindaslab@lemmy.ml to Linux@lemmy.ml · 3 years ago
message-square
4
fedilink
Often I run into a problem, I need to create a directory using mkdir and I have to cd into it. Some times I need to create a directory structure like this: ~/code/folder/sub_folder, the folder might be missing or the code might be missing. So I found the following shell command which will mkdir with padding and changes i.e cd to the created directory.
  • lenathaw@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    I have a little function for that

    mkdirpushd () {
            mkdir -p ${1}
            pushd ${1}
    }
    

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

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

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 580 users / day
  • 3.44K users / week
  • 8.29K users / month
  • 16.6K users / 6 months
  • 24 local subscribers
  • 54.1K subscribers
  • 6.52K Posts
  • 112K Comments
  • Modlog
  • mods:
  • nooter692@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org