Skip to content

Instantly share code, notes, and snippets.

@StuffbyYuki
Last active November 12, 2020 01:42
Show Gist options
  • Select an option

  • Save StuffbyYuki/b85862d077e744bd18483f291d6980ba to your computer and use it in GitHub Desktop.

Select an option

Save StuffbyYuki/b85862d077e744bd18483f291d6980ba to your computer and use it in GitHub Desktop.
List of some linux commends
# move to a different directory
cd <yourDirectory>
# show what's in the current directory
ls
# show what's in the current directory with more details
ls -l
# show what's in the current directory with more details - pretty much the same as above but show hidden files
ls -al
# make a new directory
mkdir <newDirectoryName>
# create a compressed tarball file. use this from the parent directory
tar -czf <fileNameYouMake>.tar.gz <directoryName>
# download file from the remote server to your local computer
scp <yourRemoteServer>:<remoteFilePath> <localDirectoryToCopyFileInto>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment